Modified JS animation to weird hacked CSS animation