我正在使用jQuery的插件flip。我想翻轉一張卡片(div),當它完成翻轉後,立即恢復翻轉它。這就是我試過的我需要翻轉懸停的div
$("#flipbox").bind("hover",function(){
$(this).flip({
direction:'tb',
onEnd: function() {
$(this).revertFlip();
console.log('when the animation has already ended');
}
})
}
所以有什麼問題了嗎? –
你可以嘗試在jsfiddle上重新創建嗎? –
它翻轉但不翻轉,還是不翻轉? – Qqwy