Fix flickering popover animations

Closes #4138

- Removed JS animation to close in favour of CSS animations
Shame on me, did I never initialize this variable? :+1: good job