如何向JSliderNews 2.0(jQuery)添加淡化效果

时间:2012-12-17 07:24:35

标签: javascript jquery css3

我想找到JSliderNews 2.0的褪色效果,但我不确定如何尝试,但它不起作用

$(document).ready( function(){  
    var buttons = { previous:$('#jslidernews2 .button-previous') ,
                        next:$('#jslidernews2 .button-next') };          
    $('#jslidernews2').lofJSidernews({
        interval:5000,
        effect: 'fade', //easing:'easeInOutQuad',
        duration:1200,
        auto:true,
        mainWidth:590,
        mainHeight:300,
        navigatorHeight: 76,
        navigatorWidth: 160,
        maxItemDisplay:4,
        buttons:buttons } );                        
    });

我对默认代码进行了细微更改,但仍然无效,我添加了effect & removed easing部分没有任何区别

effect: 'fade',
//easing:'easeInOutQuad',

1 个答案:

答案 0 :(得分:1)

添加这些选项

direction       : 'opacity',
easing          : 'linear',