Swapped out javascript animation for css webkit animation