animation-delay负值

摘要:
DOCTYPE html˃文档div{width:100px;height:100px,position:absolute;}。box1{背景色:红色;顶部:100px;动画:move1s;}。box2{背景色:蓝色;顶部:250px;动画:move2s;}。box3{background color:green;top:350px;animation:move2s-1s;/*立即开始动画,并在1s之前跳过动画*/}@keyframesmove{0%{left:0;}100%{lef:500px;}}
<!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负值》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Cacti修改图形右侧RRDTool水印Centos 7 安装nvidia显卡驱动下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

css3中动画animation的应用

<!DOCTYPE html> <html> <head> <style> /*@-webkit-keyframes anim1 { // 规定动画。 0% { Opacity: 0; font-size: 12px; } 100% { Opacity: 1; font-size: 34px;...

Css3动画(一) 如何画3D旋转效果或者卫星围绕旋转效果

如何画3D旋转效果或者卫星围绕旋转效果,当然这个也是工作中的一个任务,我在网上翻了一下,并没有找到类似的东西,所以写下来还是费了一番功夫,因此我把它拿出来记录一下,当然替换了一部分内容。好了,话不多说,进入正题。 我们都知道,浏览器是一个平面的视觉效果,如何在一个平面上看出立体的3D效果呢,其实就是一个视觉差的问题。那我们就从一个平面视觉效果一步一步画出...

Timeline v1.3.2 学习

https://docs.unity3d.com/Packages/com.unity.timeline@1.3/manual/index.html https://learn.unity.com/tutorial/timeline Timline overview Using the Timeline window Create a Timeline A...

css3动画特效:上下晃动的div

<div class="container animated">上下晃动</div> /** * transform-origin 设置旋转元素的基点位置 * animation-name 设置动画名称 * animation-duration 设置动画时间 * animation-fill-...

CoreAnimation1-图层树、寄宿图以及图层几何学

(一)图层的树状结构 Core Animation其实是一个令人误解的命名。你可能认为它只是用来做动画的,但实际上它是从一个叫做Layer Kit这么一个不怎么和动画有关的名字演变而来,所以做动画这只是Core Animation特性的冰山一角。 Core Animation是一个复合引擎,它的职责就是尽可能快地组合屏幕上不同的可视内容,这个内容是被分解成...

Unity里面的自动寻路(一)

来自:http://www.narkii.com/club/forum.php?mod=viewthread&tid=269146&highlight=Unity%E9%87%8C%E9%9D%A2%E7%9A%84%E8%87%AA%E5%8A%A8%E5%AF%BB%E8%B7%AF             众所周知,自动寻路是所有游戏...