Switch to CSS for visibility effects.