zoukankan      html  css  js  c++  java
  • 奔跑的奥迪

    <!doctype html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    img {
      /*animation:动画名称 动画时间 运动曲线 何时开始 播放次数 是否反方向;*/
      animation: car 5s infinite; /*引用动画*/
    }
    /*定义动画*/
    @keyframes car {
      0% {
      transform: translate3d(0, 0, 0);
    }
    50% {
      transform: translate3d(1000px, 0, 0);
    }
    51% {
      transform: translate3d(1000px, 0, 0) rotateY(180deg);
      /*如果多组变形 都属于 tarnsform 我们用空格隔开就好了*/
    }
    99% {
      transform: translate3d(0, 0, 0) rotateY(180deg);
      /*如果多组变形 都属于 tarnsform 我们用空格隔开就好了*/
    }

    }
    </style>
    </head>
    <body>
      <img src="images/car.jpg" width="100" alt=""/>
    </body>
    </html>

  • 相关阅读:
    Elasticsearch
    Docker
    Python 目录
    淘宝
    MyBatis
    Docker 安装ubuntu服务器
    goodrain云平台 mysql主从同步应用创建
    flask入门
    virtualenv
    进程 线程(二)
  • 原文地址:https://www.cnblogs.com/pxxdbk/p/12560156.html
Copyright © 2011-2022 走看看