Updated animations to css transitions