jquery.easing jQuery conflict



我在单个页面中使用了菜单和幻灯片。我使用"easeOutBounce"从使用jquery.easing.1.3.js到根据菜单。

现在菜单工作正常。

但它与滑块冲突。我不需要滑块的这种效果。我不知道如何解决这个问题。

我不需要"easeOutBounce"效果此URL的底部幻灯片。

当我从代码中删除此行$.easing.def = "easeOutBounce";时,幻灯片不是问题。但是我需要这种效果来根据菜单。

我的代码是

<script>
    $(document).ready(function(){
        $.easing.def = "easeOutBounce";
        $('li.button a').click(function(e){
            var dropDown = $(this).parent().next();
            $('li.dropdown').not(dropDown).slideUp('slow');
            dropDown.slideToggle('slow');
            e.preventDefault();
        })
    });
</script>
<script>
    $(function(){
        $('#slides_two').slides({
            generateNextPrev: true,
            pagination: false,
            preload: true,
            preloadImage: 'images/loading.gif',
            generatePagination: false,
            play: 10000,
            slideSpeed: 3000,
            effect: 'slide',
            pause: 4000,
            hoverPause: true
        });
    });
</script>

您可以使用滑块的幻灯片缓动选项。这是使用此选项的代码的方式:

<script type="text/javascript">
      $(document).ready(function(){
    $.easing.def = "easeOutBounce";
    $('li.button a').click(function(e){
    var dropDown = $(this).parent().next();
    $('li.dropdown').not(dropDown).slideUp('slow');
    dropDown.slideToggle('slow');
    e.preventDefault();
})
      });
      </script>
      <script type="text/javascript">
    $(function(){
        $('#slides_two').slides({
            generateNextPrev: true,
            pagination: false,
            preload: true,
            preloadImage: 'images/loading.gif',
            generatePagination: false,
            play: 10000,
            slideSpeed: 3000,
            effect: 'slide',
            pause: 4000,
            hoverPause: true,
            slideEasing: "jswing"
        });
        });
</script>

您可以在此处看到缓动类型。

最新更新