我目前使用Spritely在jQuery中创建动画。仅在mouseover上播放Spritely动画
我怎么会去了鼠标上播放动画一次,然后停在鼠标移出动画...
任何帮助将是巨大的感谢,这是当前的代码:
(function($) {
$('#booth').bind("mouseenter", function() {
$('#phone').sprite({fps: 24, no_of_frames: 36})
$(this).unbind();
});
$('#booth').bind("mouseout", function() {
$(this).stop();
$(this).unbind();
});
})(jQuery);
你还在寻找吗? – bottleboot 2012-04-24 10:02:12