jQuery卷轴效果

<!DOCTYPE html>
<html lang="en">
<head>
 <meta charset="UTF-8">
<title>jQuery卷轴效果</title>
<style type="text/css">
    body,ul,li,p,h1,h2,h3,h4,h5{
        margin:0;
        padding:0;
        font-size:100%;
    }
    body{ 
        font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', Tahoma, Helvetica, Sans-Serif;
        font-size: 14px;
        background: #6f0b02;
    }
    button,input,select,textarea{
        font-family: inherit;
        font-size: 100%; 
        margin: 0;
    }
    button,
    html input[type="button"],
    input[type="reset"],
    input[type="submit"] {
        -webkit-appearance: button;
        cursor: pointer;
    }
    li{
        list-style: none;
    }
    a{
        text-decoration:none;
        color:#000;
        background: transparent;
    }
    a:focus{
        outline: none;
    }
    img{
        border:0;
    }


    .fl{
        float: left;
    }
    .fr{
        float: right;
    }
    .center{
        width: 1000px;
        margin: 0 auto 0;
    }
    /*content*/
    .content{
        position: relative;
        margin: 40px 0 0 -21px;
        width: 900px;
        height: 460px;
    }
    .l-pic-index{
        /*display:none;*/
        position: absolute;
        left: 400px;
        top: 1px;
        z-index:2;
        width:50px;
        height:460px;
        background: url("http://i4.bvimg.com/625515/1021c8a20f5b060e.png") no-repeat right 0;
    }
    .r-pic-index{
        /*display:none;*/
        position: absolute;
        right: 400px;
        top: 0;
        z-index: 2;
        width:50px;
        *width:82px;
        height:460px;
        background: url("http://i4.bvimg.com/625515/04932cd2816c81b8.png") no-repeat left 0;
    }
    .l-bg-index{
        position: absolute;
        top: -3px;
        left: 430px;
        z-index: 1;
        width: 25px;
        height: 459px;
        background: url("http://i4.bvimg.com/625515/3deb4efeb804c292.png") right 0 no-repeat;
    }
    .r-bg-index{
        position: absolute;
        top:-4px;
        right: 430px;
        z-index: 1;
        width: 25px;
        height: 459px;
        background: url("http://i4.bvimg.com/625515/369a97840070c96a.png") 0 0 no-repeat;
    }
    .main-index{
        display: none;
        overflow: hidden;
        zoom:1;
        position: absolute;
        z-index: 5;
        width:530px;
        height:280px;
        left:145px;
        top:90px;
        color: #2e2e2e;
    }
    .intro-text{
        margin: 10px 0 0 44px;
        line-height: 1.8;
        text-indent: 30px;
    }
</style>
</head>
<body>
<div class="content">
    <div class="l-pic-index"></div>
    <div class="r-pic-index"></div>
    <div class="l-bg-index"></div>
    <div class="r-bg-index"></div>
    <div class="main-index">
        <p class="intro-text">
            传统音乐是在以典河流域为中心的中原音乐和四域音乐以及外国音乐的交流融合之中形成发展起来的。
        </p>
    </div>
</div>
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script>
    $(document).ready(function(){
        //卷轴展开效果
        $(".l-pic-index").animate({'left':'95px','top':'-4px'},1300);
        $(".r-pic-index").animate({'right':'-23px','top':'-5px'},1450);
        $(".l-bg-index").animate({'width':'433px','left':'73px'},1500);
        $(".r-bg-index").animate({'width':'433px','right':'-38px'},1500,function(){
            $(".main-index").fadeIn(800);
        });
    });
</script>
</body>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值