[英]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? 进入jQuery动画?
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. 我正在使用这个脚本,使用Packery / Masonry制作一个“onload”动画,所有项目从左上角到其位置都很容易。
Unforunately this css3 transition is causing a shaking with the packery script when you resize the browser. 不幸的是,当您调整浏览器大小时,此css3转换会导致包装脚本发生抖动。 A solution would be to use jquery animations.
解决方案是使用jquery动画。
Any ideas? 有任何想法吗?
Unforunately this css3 transition is causing a shaking with the packery script when you resize the browser.
不幸的是,当您调整浏览器大小时,此css3转换会导致包装脚本发生抖动。
A solution would be to use jquery animations.解决方案是使用jquery动画。
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. 确保
#element
位置相对OR绝对。
hope that helps. 希望有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.