jQueryRotate传数组

daswcszxw daswcszxw 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
想用jQueryRotate做个码表的动画效果。
但jQueryRotate function只?支持传值进去。
现在想传数据,或者构造多个$(this).rotate({})方法
形成加速,减速效果。
我尝试了多种方法,也改了jQueryRotate插件里的方法都没成功。

求指点。


<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>jqueryrotate</title>

</head>
<body>
<div style="width:500px;margin:0 auto">
<h3>演示六、点击旋转一</h3>
<img id="img6" src="http://avatar.csdn.net/B/3/A/1_webyellow.jpg" width="256" height="256"/>
</div>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.6.4/jquery.js"></script>
<script type="text/javascript" src="http://www.jq22.com/demo/choujiang/js/jQueryRotate.2.2.js"></script>
<script>
$(function() {
$("#img6").rotate({
bind:
{
click: function() {
$(this).rotate({
angle: 0,
animateTo: 50,
duration: 1000,
callback: function () {
$("#img6").rotate({angle:48});
}
});
}
}

});

});
</script>
</body>
</html>
...全文
评论 8
收藏 已收藏
分享
返回顶部
daswcszxw
JavaScript 87,984 成员 224,680 内容