replaced js with css animations