码迷,mamicode.com
首页 > 其他好文 > 详细

animation-delay负值

时间:2016-05-12 01:21:04      阅读:653      评论:0      收藏:0      [点我收藏+]

标签:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    div{
        width: 100px;
        height: 100px;
        position: absolute;
    }
    .box1{
        background-color: red;
        top: 100px;
        animation: move 1s;
    }
    .box2{
        background-color: blue;
        top: 250px;
        animation: move 2s;
    }
    .box3{
        background-color: green;
        top: 350px;
        animation: move 2s -1s;/*使动画马上开始跳过1s前的动画*/
    }
    @keyframes move{
        0%{
            left: 0;
        }
        100%{
            left: 500px;
        }
    }
    </style>
</head>
<body>
    <div class="box1"></div>
    <div class="box2"></div>
    <div class="box3"></div>
</body>
</html>

 

animation-delay负值

标签:

原文地址:http://www.cnblogs.com/jiujiaoyangkang/p/5484009.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!