switched to CSS transitions