• animation demo


     1 <!DOCTYPE html>
     2 <html lang="en">
     3 <head>
     4     <meta charset="UTF-8">
     5     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     6     <meta http-equiv="X-UA-Compatible" content="ie=edge">
     7     <title>Document</title>
     8     <style>
     9     .animation {
    10         margin: 100px 100px;
    11         width: 200px;
    12         height: 100px;
    13         background-color: #3a9;
    14         animation-name:  animation;
    15         animation-delay: 2s;
    16         animation-duration: 5s;
    17         animation-timing-function: ease;
    18         animation-direction: reverse;
    19 
    20     }
    21     @keyframes animation {
    22         0% {background-color: rgb(148, 190, 31); border-radius: 50%;}
    23         25% {background-color: rgb(31, 185, 190);}
    24         50% {margin-left: 300px; margin-top: 300px ;}
    25         75% {margin-left: 500px; margin-top: 300px; background-color: #3a9;}
    26         100% {margin-right: 300px; margin-top: 400px; background-color: #f00;}
    27     }
    28     </style>
    29 </head>
    30 <body>
    31     <div class="animation"></div>
    32 </body>
    33 </html>
  • 相关阅读:
    linux集群实施与部署-----Nginx
    以太网链路聚合简单配置
    配置基于源地址的策略路由
    shell --Day 6
    ps初学--Day 1部分工具使用
    shell --Day 5
    shell ——Day 4
    shell——Day3
    shell——Day 2
    初学shell——Day1
  • 原文地址:https://www.cnblogs.com/gaoxuerong123/p/9463747.html
Copyright © 2020-2023  润新知