Advertisement
A_God

Custom

Nov 26th, 2021
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.40 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!--
  3. Created using JS Bin
  4. http://jsbin.com
  5.  
  6. Copyright (c) 2021 by aaditya-cpu (http://jsbin.com/yubujeg/2/edit)
  7.  
  8. Released under the MIT license: http://jsbin.mit-license.org
  9. -->
  10. <meta name="robots" content="noindex">
  11. <html>
  12. <head>
  13.   <meta charset="utf-8">
  14.   <meta name="viewport" content="width=device-width">
  15.   <title>JS Bin</title>
  16.   <script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/2.0.2/anime.min.js"></script>
  17. <style id="jsbin-css">
  18. .ml15 {
  19.   font-weight: 500;
  20.   font-size: 30px;
  21.   text-transform: uppercase;
  22.   letter-spacing: inherit;
  23. }
  24.  
  25. .ml15 .word {
  26.   display: inline-block;
  27.   line-height: 1em;
  28. }
  29. @media only screen and (max-width: 600px){
  30.  
  31.   .ml15 {
  32.   font-weight: 400;
  33.     font-size: 20px; }
  34.  
  35. }
  36. </style>
  37. </head>
  38. <body>
  39. <!--box me dalna-->
  40. <h1 class="ml15">
  41.   <span class="word">We</span>
  42.   <span class="word">are</span>
  43.   <span class="word">the</span>
  44.   <span class="word">Global</span>
  45.   <span class="word">Champs!</span>
  46. </h1>
  47.  
  48. <!--footer ke upar-->
  49. <script id="jsbin-javascript">
  50. anime.timeline({loop: true})
  51.   .add({
  52.     targets: '.ml15 .word',
  53.     scale: [10,1],
  54.     opacity: [0,1],
  55.     easing: "easeOutCirc",
  56.     duration: 400,
  57.     delay: (el, i) => 400 * i
  58.   }).add({
  59.     targets: '.ml15',
  60.     opacity: 0,
  61.     duration: 1000,
  62.     easing: "easeOutExpo",
  63.     delay: 3000
  64.   });
  65. </script>
  66. <!--yaha tak dalna-->
  67. </body>
  68. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement