superslider 实现文字和banner脱离

<script type="text/javascript">
    $(".TabList .List ul").width($(".TabList .List ul li:first").outerWidth(true)*$(".TabList .List ul li").size());
    jQuery(".HomeBan").slide({ mainCell: ".BanList ul", titCell: ".TabList li", effect: "fold", autoPlay: true, interTime: 5000,
        startFun: function (i, c) {
            if (i == "0" || i == "2") {
                $(".HomeBan .BanList li").eq(i).find("img").stop().animate({ opacity: 1, left: "52%" }, 1000, function () {
                    $(".HomeBan .BanList li").eq(i).siblings("li").find("img").attr("style", "")
                });
            } else if (i == "1") {
                $(".HomeBan .BanList li").eq(i).find("img").stop().animate({ opacity: 1, left: "10%" }, 1000, function () {
                    $(".HomeBan .BanList li").eq(i).siblings("li").find("img").attr("style", "")
                });
            }
        },
        endFun: function (i, c) {

        }
    });
</script>

 

posted @ 2017-03-31 17:37  ghfjj  阅读(258)  评论(0编辑  收藏  举报