摇晃的桃子

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>摇晃的桃子</title>
    <style>
        p{
            font-family: "微软雅黑";
            font-size: 40px;
            position: absolute;
            top: -100px;
            left: 0px;
        }
        .act_wrapper{
            position: relative;
            z-index: 1;
            min-width: 1000px;
            margin: 0 auto;
            overflow: hidden;
        }
        .act_wrapper .act_bg{
            position: absolute;
            left: 50%;
            top: 0;
            z-index: 1;
            width: 1920px;
            margin-left: -600px;
        }
        .act_wrapper .act_content{
            position: relative;
            z-index: 2;
            width: 1000px;
            height: 1200px;
            margin: 0 auto;
            margin-top: -569px;
        }

        .act_bg{
            background:url("../img/bg.jpg");
            height: 750px;
        }
        .mod_style{
            position: absolute;
            top: 716px;
            left: 200px;
            width: 870px;
            height: 560px;
        }
        .peach{
            position: absolute;
            top: 0px;
            left: 0;
            width: 90px;
            height: 100px;
            display: block;
            background: url("../img/peach.png") no-repeat 0 0;
        }
        .peach1{
            background-position: 0 0;
            top: 130px;
            left: 72px;
        }
        .peach2{
            background-position: 0 0;
            top: 35px;
            left: 200px;
        }
        .peach3{
            background-position: 0 0;
            top: 71px;
            left: 452px;
        }
        .peach4{
            background-position: 0 0;
            top: 140px;
            left: 261px;
        }
        .peach5{
            background-position: 0 0;
            top: 256px;
            left: 412px;
        }

        .shake1{
            -webkit-animation-duration: 2.5s;
        }
        .shake2{
            -moz-animation-duration: 3.5s;
        }
        .shake3{
            -webkit-animation-duration: 1.5s;
        }
        .shake4{
            -webkit-animation-duration: 4.5s;
        }
        .shake5{
            -webkit-animation-duration: 3s;
        }

        .shake1,.shake2,.shake3,.shake4,.shake5{
            -webkit-animation-iteration-count: infinite;
            -webkit-animation-name: shake;
            -webkit-animation-timing-function: ease-in-out;
        }

        @-webkit-keyframes shake {
            0%{
                -webkit-transform: rotate(2deg);
                -webkit-transform-origin: 50% 0;
            }
            25%{
                -webkit-transform: rotate(10deg);
                -webkit-transform-origin: 50% 0;
            }
            50%{
                -moz-transform: rotate(0deg);
                -moz-transform-origin: 50% 0;
            }
            100%{
                -moz-transform: rotate(-10deg);
                -moz-transform-origin: 50% 0;
            }
        }

    </style>
</head>
<body>
<div class="act_wrapper">
    <div class="act_content">
        <div class="mod_style">
            <p>摇晃的桃子</p>
            <span class="peach peach1 shake1"></span>
            <span class="peach peach2 shake2"></span>
            <span class="peach peach3 shake3"></span>
            <span class="peach peach4 shake4"></span>
            <span class="peach peach5 shake5"></span>
        </div>
    </div>
    <div class="act_bg"></div>
</div>
</body>
</html>

袁同学——2019年4月29日

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值