We have a swinging electric gate. My wife got it so we I don't have to get down from the car when it rains. Its solid, so outsiders cannot see through it. Its 1 year old and hasn't had any problems. When leaving, I wait until it's fully closed before driving off. This is to prevent a person or animal from entering while it is closing. It has a sensor that prevents closing if there is anything blocking it.

My niece has a solid sliding gate. It's three years old, and no problems yet too.