当前位置:Gxlcms > JavaScript > jqueryanimate动画持续运动的实例

jqueryanimate动画持续运动的实例

时间:2021-07-01 10:21:17 帮助过:6人阅读

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();


如上,想要实现左右持续运动,则把该动画封装为一个函数,再反复调用就好。

看起来是不是很简单就能实现。

相关推荐;

css的animation动画的使用教程

jQuery动画与特效详解

CSS3中动画技术的实现步骤

以上就是jquery animate动画持续运动的实例的详细内容,更多请关注Gxl网其它相关文章!

人气教程排行