1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- <style>
- #div1 {
- width: 200px;
- height: 200px;
- background: aqua;
- animation: run 5s ease 1s 2 forwards;
-
- }
- @keyframes run {
- 10% {
- width: 800px;
- }
- 50% {
- width: 200px;
- }
- 100% {
- width: 400px;
- }
- }
- </style>
- </head>
- <body>
- <div id="div1"></div>
- </body>
- </html>
|