jQuery滑块>在屏幕上淡化幻灯片而不是动画()

时间:2012-04-19 19:48:16

标签: jquery slider

我修改了这个滑块脚本,以便它们不是从右到左动画幻灯片,而是只显示一个在另一个上面。应用溶解/淡化效果需要做什么?

换句话说,我希望在下一张幻灯片出现时淡出上一张幻灯片

 a.fn.calculateSlidePos = function () {
            var b = 2;
            a(this).find("dt").not(":first").each(function () {
                var c = dtWidth * activeID;
                if (b <= activeID) {
                    var d = dtWidth * (b - 1);
                    /*a(this).animate({left: d});*/
                    a(this).css({left: d});
                    if (b < activeID) {
                       a(this).next().fadeIn().css({
                            left: d + dtWidth
                        })
                    } else {
                        /*a(this).next().animate({left: c})*/
                        a(this).next().css({left: c})
                    }
                } else {
                    var e = dlWidth - dtWidth * (slideTotal - b + 1);
                    a(this).animate({
                        left: e
                    });
                    var f = e + dtWidth;
                    /*a(this).next().animate({left: f})*/
                    a(this).next().css({left: f})
                }
                b = b + 1
            });
            setTimeout(function () {
                a(".easy-accordion").find("dd").not(".active").each(function () {
                    a(this).css({
                        display: "none"
                    })
                })
            }, 400)
        };

0 个答案:

没有答案
相关问题