简体   繁体   中英

Transform css animations to jquery

I'm stuck here.

How to I transform this:

 -webkit-transition:all 0.66s ease-out;
-moz-transition:all 0.66s ease-out;
-ms-transition:all 0.66s ease-out;
-o-transition:all 0.66s ease-out;
transition:all 0.66s ease-out; 

into jQuery animations?
I'm using this script, to make an "onload" animation using Packery/Masonry that all items ease from the upper left corner to their positions.
Unforunately this css3 transition is causing a shaking with the packery script when you resize the browser. A solution would be to use jquery animations.

Any ideas?

Unforunately this css3 transition is causing a shaking with the packery script when you resize the browser. A solution would be to use jquery animations.

Or remove the class that adds the transitions after the initial transitions took place.

try:

$('#element').animate({top : 200, left: 200}, 660);

make sure #element has position relative OR absolute.

hope that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM