しばらくの間、これに対する解決策を探していましたが、それを把握したり見つけたりすることはできません。hover-quickflipプラグインを使い始めました。しかし、それは私のページの他のスクリプトの負荷と競合しています。+ div/flipコンテンツを設定していません
誰でも助けてくれませんか!
私はこれを使用しましたが、ホバーで回転するだけです。おそらくこれは少し調整する必要があります
$(document).ready(function(){
$('.sponsorFlip').hover(function(){
// $(this) point to the clicked .sponsorFlip element (caching it in elem for speed):
var elem = $(this);
// Using the flip method defined by the plugin:
elem.flip({
direction:'lr',
speed: 350,
onBefore: function(){
// Insert the contents of the .sponsorData div (hidden
// from view with display:none) into the clicked
// .sponsorFlip div before the flipping animation starts:
elem.html(elem.siblings('.sponsorData').html());
}
});
}, function() {$(this).revertFlip();});
});