animate于昭和62年(1987年)7月成立,主要事业内容为动漫相关角色商品,书籍杂志,cd·dvd,游戏,画材等物品的贩卖。本文就为大家分享jquery animate动画持续运动的实例,具有很好的参考价值,希望对大家有所帮助。
function fingers(){
$(".box01 .fingers").animate({"width":"7.5rem","marginLeft":"-3.75rem"},500,function(){
$(".box01 .fingers").animate({"width":"6.8rem","marginLeft":"-3.4rem"},500,fingers());
});
}
fingers();如上,想要实现左右持续运动,则把该动画封装为一个函数,再反复调用就好。
看起来是不是很简单就能实现。
相关推荐;










