我目前使用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