Hadi1989

Untitled

May 18th, 2020
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.15 KB | None | 0 0
  1.  *{
  2.   font-family: Verdana, Geneva, Tahome, sans-serif;
  3. }
  4. h4{
  5.   position: absolute;
  6.   top: 50%;
  7.   left: 50%;
  8.   transform: translate(-50%, -50%);
  9.   font-size: 5em;
  10.   color: rgb(22,22,22);
  11.   text-transform: uppercase;
  12. }
  13. h4:before{
  14.   content: attr(data-text);
  15.   position: absolute;
  16.   left: 0%
  17.   top:0%;
  18.   width: 0%;
  19.   color: dodgerblue;
  20.   overflow: hidden;
  21.   transition: .5s;
  22. }
  23. h4:hover:before{
  24.   width: 100%
  25. }
  26.  
  27. body {
  28.   background: blueviolet;
  29. }
  30. .container {
  31.   position: absolute;
  32.   left: 50%;
  33.   top: 50%;
  34.   transform: translate(-50%, -50%);
  35. }
  36. .circle-container {
  37.   width: 400px;
  38.   height: 300px;
  39.   position: absolute;
  40.   left: 50%;
  41.   top: 50%;
  42.   transform: translate(-50%, -50%);
  43. }
  44. .circle-container:after {
  45.   content: '';
  46.   position: absolute;
  47.   width: 20px;
  48.   height: 5px;
  49.   border-radius: 50%;
  50.   background: #000;
  51.   bottom: 0;
  52.   opacity: 0.4;
  53.   left: 50%;
  54.   animation: shadow 2s linear infinite;
  55. }
  56. .circle-container:nth-child(2):after {
  57.   animation-delay: -0.3s;
  58. }
  59. .circle-container:nth-child(3):after {
  60.   animation-delay: -0.6s;
  61. }
  62. .circle {
  63.   width: 15px;
  64.   height: 15px;
  65.   background: #fff;
  66.   left: 50%;
  67.   top: 50%;
  68.   border-radius: 50%;
  69.   position: absolute;
  70.   anima
  71.   tion: anim 2s linear infinite;
  72. }
  73. .circle-container:nth-child(2) .circle {
  74.   animation-delay: -0.3s;
  75. }
  76. .circle-container:nth-child(3) .circle {
  77.   animation-delay: -0.6s;
  78. }
  79. @keyframes anim {
  80.   0% {
  81.     transform-origin: 400% 50%;
  82.   }
  83.   50% {
  84.     transform: rotate(360deg);
  85.     transform-origin: 400% 50%;
  86.   }
  87.   50.1% {
  88.     transform: rotate(0);
  89.     transform-origin: -300% 50%;
  90.   }
  91.   100% {
  92.     transform: rotate(-360deg);
  93.     transform-origin: -300% 50%;
  94.   }
  95. }
  96. @keyframes shadow {
  97.   0% {
  98.    
  99.   }
  100.   12.5% {
  101.     transform: translate(50px) scale(0.6);
  102.   }
  103.   25% {
  104.     transform: translate(120px);
  105.   }
  106.   37.5% {
  107.     transform: translate(50px) scale(1.4);
  108.   }
  109.   50% {
  110.     transform: translate(0px);
  111.   }
  112.   62.5% {
  113.     transform: translate(-50px) scale(0.6);
  114.   }
  115.   75% {
  116.     transform: translate(-120px);
  117.   }
  118.   87.5% {
  119.     transform: translate(-50px) scale(1.4);
  120.   }
  121.   100% {
  122.     transform: translate(0px);
  123.   }
  124. }
Add Comment
Please, Sign In to add comment