Move animation to a css file
Add animateDuration user option
Optimize pointer classname update
Optimize animation