zoukankan      html  css  js  c++  java
  • css3 动画序列

     @keyframes move {
                0% {
                    transform: translate(0, 0);
                }
                25% {
                    transform: translate(500px, 0);
                }
                50% {
                    transform: translate(500px, 500px);
                }
                75% {
                    transform: translate(0, 500px);
                }
                100% {
                    transform: translate(0, 0);
                }
            }
     
     animation-name: move;
                animation-duration: 10s;

     @keyframes move {
                0% {
                    transform: translate(0, 0);
                }
                100% {
                    transform: translate(1000px, 0);
                }
            }
            
            div {
                 100px;
                height: 100px;
                background-color: pink;
                /* 动画名称 */
                animation-name: move;
                /* 持续时间 */
                animation-duration: 2s;
                /* 运动曲线 */
                animation-timing-function: ease;
                /* 何时开始 */
                animation-delay: 1s;
                /* 重复次数  iteration 重复的 count 次数 iteration 无限次播放*/
                /* animation-iteration-count: infinite; */
                /* 是否反方向播放 默认是 normal  反方向就写alternate*/
                /* animation-direction: alternate; */
                /* 动画结束后的状态  默认的是 backwards  回到起始状态, forwards 停留在结束状态  */
                animation-fill-mode: forwards;
            }
            
            div:hover {
                /* 鼠标经过div  停止状态   鼠标离开 继续动画 */
                animation-play-state: paused;
            }
  • 相关阅读:
    存储过程中调用webservice
    设计模式学习笔记——桥接模式(Bridge Patten)
    设计模式学习笔记——修饰模式(Decorator Pattern)
    设计模式学习笔记——单件模式(Singleton Pattern)
    设计模式学习笔记——建造者模式(Builder Pattern)
    设计模式学习笔记——工厂方法(Factory Method)
    设计模式学习笔记——简单工厂(Simple Factory)
    设计模式学习笔记——适配器模式(Adapter Patten)
    设计模式学习笔记——抽象工厂(Abstract Factory)
    存储过程使用shell脚本执行sql文件
  • 原文地址:https://www.cnblogs.com/ericblog1992/p/12935877.html
Copyright © 2011-2022 走看看