switched to @keyframes from javascript