Simplify css and use css for fading.