Fix flickering popover transitions

Closes #4138

- Removed JS animation to close in favour of CSS animations