Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>JS Bin</title>
  7. <style id="jsbin-css">
  8. .animate {
  9. animation-duration: 2s;
  10. animation-name: animationTest
  11. }
  12.  
  13. @keyframes animationTest {
  14. from {
  15. opacity: 0;
  16. }
  17. to {
  18. opacity: 1;
  19. }
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div class="animate">
  25. <h1>This is a test</h1>
  26. </div>
  27.  
  28.  
  29. <script id="jsbin-source-css" type="text/css">.animate {
  30. animation-duration: 2s;
  31. animation-name: animationTest
  32. }
  33.  
  34. @keyframes animationTest {
  35. from {
  36. opacity: 0;
  37. }
  38. to {
  39. opacity: 1;
  40. }
  41. }</script>
  42. </body>
  43. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement