Switched fading in/out from js to css