Property to increase the speed boot of an animation:
$(“#element”).css(“will-change”, “animation”);
//when the animation has finished:
$(“#element”).css(“will-change”, “auto”);
(Very recommendable to not declare by css in order to delete it once it was used. So add it with JQuery selectors and methods.)
It reserves-consumes quite resources and it is powerful tool which could also crash your webpage.So like the
Spiderman’s uncle said to him, a big power requires a big responsability
More info at:
http://dev.opera.com/articles/css-will-change-property/
Anuncios