【发布时间】:2016-12-16 15:08:48
【问题描述】:
我正在尝试使用 ".circulate" 制作弧形滚动横幅(好像很少有图标在球体周围滚动)。
我成功地做到了,但现在我想做一个 onmouseover/onmouseout 事件,当鼠标在它上面时停止动画
html:
<div id="sphere-area" >
<img src="a.png" alt="ball" id="orange-ball" />
alt="" />
</div>
Js:
function startBallOne() {
$("#orange-ball").circulate({
speed: 4000,
height: 100,
width: -880,
sizeAdjustment: 40,
loop: true,
zIndexValues: [1, 1, 3, 3]
});
}
我尝试了类似的东西
$("#orange-ball").mouseout(circulate(...
但它不起作用..
有什么想法吗? TIA
【问题讨论】: