Added css animations
fix animation for firefox