1

一段时间以来一直在寻找解决方案,但无法掌握或找到它。我开始使用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();});

});
4

0 回答 0