moving from js to css animation, load faster