我正在使用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