Advertisement
Mark2020H

CSS page for animated text

Jan 17th, 2022
1,245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.90 KB | None | 0 0
  1. @import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap');
  2. * {
  3.   padding: 0;
  4.   margin: 0;
  5.   box-sizing: border-box;
  6. }
  7.  
  8. body {
  9.   background-image:  url('forest.jpg');
  10.   display: flex;
  11.   justify-content: center;
  12.   align-items: center;
  13.   min-height: 100vh;
  14. }
  15.  
  16. #wrapper{
  17.  display:flex ;
  18.  margin:auto ;
  19. }
  20.  
  21.  
  22. p.caption{
  23.   text-align: center;
  24.   color :  rgba(4, 248, 4, 0.986);
  25.   font-size: 60px;
  26.  
  27. }
  28. .waviy {
  29.   position: relative;
  30.   -webkit-box-reflect:  linear-gradient(transparent, rgba(0,0,0,.2));
  31.   font-size: 60px;
  32. }
  33. .waviy span {
  34.   font-family: 'Alfa Slab One', cursive;
  35.   position: relative;
  36.   display: inline-block;
  37.   color: #fff;
  38.   text-transform: uppercase;
  39.   animation: waviy 1s infinite;
  40.   animation-delay: calc(.1s * var(--i));
  41.  
  42. }
  43. @keyframes waviy {
  44.   0%,40%,100% {
  45.     transform: translateY(0)
  46.   }
  47.   20% {
  48.     transform: translateY(-20px)
  49.   }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement