Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Animation</title>
- <!-- <link rel="stylesheet" href="style.css"> -->
- <style>
- .box {
- width: 200px;
- height: 200px;
- background-color: royalblue;
- animation-name: appear;
- animation-duration: 1s;
- }
- body {
- display: flex;
- align-items: center;
- justify-content: center;
- min-height: 100vh;
- }
- @keyframes appear {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
- }
- </style>
- </head>
- <body>
- <div class="box"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement