SHARE
TWEET

Untitled

a guest Nov 22nd, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5.     <meta charset="UTF-8">
  6.     <title>Animation</title>
  7.     <!-- <link rel="stylesheet" href="style.css"> -->
  8.     <style>
  9.         .box {
  10.             width: 200px;
  11.             height: 200px;
  12.             background-color: royalblue;
  13.             animation-name: appear;
  14.             animation-duration: 1s;
  15.         }
  16.  
  17.         body {
  18.             display: flex;
  19.             align-items: center;
  20.             justify-content: center;
  21.             min-height: 100vh;
  22.         }
  23.  
  24.         @keyframes appear {
  25.             from {
  26.                 opacity: 0;
  27.             }
  28.  
  29.             to {
  30.                 opacity: 1;
  31.             }
  32.         }
  33.     </style>
  34. </head>
  35.  
  36. <body>
  37.     <div class="box"></div>
  38. </body>
  39.  
  40. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top