Advertisement
Baru_Berbagi

style.css

Aug 3rd, 2022
1,062
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.48 KB | None | 0 0
  1.  
  2. *
  3. {
  4.     margin: 0;
  5.     padding: 0;
  6.     box-sizing: border-box;
  7. }
  8. body
  9. {
  10.     display: flex;
  11.     justify-content: center;
  12.     align-items: center;
  13.     min-height: 100vh;
  14.     background: #111;
  15. }
  16. .container
  17. {
  18.     position:relative;
  19.     width:100%;
  20.     display: flex;
  21.     justify-content: center;
  22.     align-items: center;
  23. }
  24. .container .ring
  25. {
  26.     position: relative;
  27.     width: 150px;
  28.     height: 150px;
  29.     margin: -30px;
  30.     border-radius: 50%;
  31.     border: 4px solid transparent;
  32.     border-top: 4px solid #24ecff;
  33.     animation: animate 4s linear infinite;
  34. }
  35. @keyframes animate
  36. {
  37.     0%
  38.     {
  39.         transform: rotate(0deg);
  40.     }
  41.     100%
  42.     {
  43.         transform: rotate(360deg);
  44.     }
  45. }
  46.  
  47. .container .ring::before
  48. {
  49.     content:'';
  50.     position: absolute;
  51.     top: 12px;
  52.     right: 12px;
  53.     border-radius: 50%;
  54.     width: 15px;
  55.     height: 15px;
  56.     background: #24ecff;
  57.     box-shadow: 0 0 0 5px #24ecff33,
  58.     0 0 0 10px #24ecff22,
  59.     0 0 0 20px #24ecff11,
  60.     0 0 20px #24ecff,
  61.     0 0 50px #24ecff;
  62. }
  63.  
  64. .container .ring:nth-child(2)
  65. {
  66.     animation: animate2 4s linear infinite;
  67.     animation-delay: -1s;
  68.     border-top: 4px solid transparent;
  69.     border-left: 4px solid #93ff2d;
  70. }
  71. .container .ring:nth-child(2)::before
  72. {
  73.     content:'';
  74.     position: absolute;
  75.     top: initial;
  76.     bottom: 12px;
  77.     left: 12px;
  78.     border-radius: 50%;
  79.     width: 15px;
  80.     height: 15px;
  81.     background: #93ff2d;
  82.     box-shadow: 0 0 0 5px #93ff2d33,
  83.     0 0 0 10px #93ff2d22,
  84.     0 0 0 20px #93ff2d11,
  85.     0 0 20px #24ecff,
  86.     0 0 50px #24ecff;
  87. }
  88. @keyframes animate2
  89. {
  90.     0%
  91.     {
  92.         transform: rotate(360deg);
  93.     }
  94.     100%
  95.     {
  96.         transform: rotate(0deg);
  97.     }
  98. }
  99.  
  100. .container .ring:nth-child(3)
  101. {
  102.     animation: animate2 4s linear infinite;
  103.     animation-delay: -3s;
  104.     position: absolute;
  105.     top: -66.66px;
  106.     border-top: 4px solid transparent;
  107.     border-left: 4px solid #e41cf8;
  108. }
  109. .container .ring:nth-child(3)::before
  110. {
  111.     content:'';
  112.     position: absolute;
  113.     top: initial;
  114.     bottom: 12px;
  115.     left: 12px;
  116.     border-radius: 50%;
  117.     width: 15px;
  118.     height: 15px;
  119.     background: #e41cf8;
  120.     box-shadow: 0 0 0 5px #e41cf833,
  121.     0 0 0 10px #e41cf822,
  122.     0 0 0 20px #e41cf811,
  123.     0 0 20px #e41cf8,
  124.     0 0 50px #e41cf8;
  125. }
  126.  
  127.  
  128.  
  129. .container p
  130. {
  131.     position: absolute;
  132.     color: #fff;
  133.     font-size: 1.5em;
  134.     font-family: consolas;
  135.     bottom: -80px;
  136.     letter-spacing: 0.1em;
  137. }
  138.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement