Advertisement
Mangus875

CSS Transformation Testing

Nov 10th, 2023
845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.19 KB | None | 0 0
  1. :root {
  2.     background-color: #222b32;
  3.     /*
  4.         #222b32
  5.         #263038
  6.     */
  7. }
  8.  
  9.  
  10. .loader div {
  11.     height: 3px;
  12.     width: 3px;
  13.     left: 50%;
  14.     top: 50%;
  15.     background-color: #fff;
  16.     transform: translate(-50%, -50%);
  17.     position: absolute;
  18. }
  19.  
  20. .loader {
  21.     width: 20vh;
  22.     height: 20vh;
  23.    
  24.     left: 50%;
  25.     top: 50%;
  26.     background-color: #ff3d00aa;
  27.     transform: translate(-50%, -50%);
  28.     position: absolute;
  29.     overflow: hidden;
  30.    
  31.     animation: anim 6s linear infinite;
  32. }
  33.  
  34. .loader #x {
  35.     width: 100%;
  36. }
  37. .loader #y {
  38.     height: 100%;
  39. }
  40. .loader #arrow {
  41.     height: 0px;
  42.     width: 0px;
  43.     transform: translate(-50%, -10vh);
  44.     background-color: #fff0;
  45.     border-style: solid;
  46.     border-width: 0px 2vh 4vh 2vh;
  47.     border-color: #0000 #0000 #fff #0000;
  48. }
  49.  
  50. @keyframes anim {
  51.     0% {
  52.         transform-origin: right center;
  53.         transform: translate(-50%, -50%) rotate(0deg);
  54.         /* transform: rotate(0deg) translate(-50%, -50%); */
  55.     }
  56.     100% {
  57.         transform-origin: right center;
  58.         transform: translate(-50%, -50%) rotate(360deg);
  59.         /* transform: rotate(360deg) translate(-50%, -50%); */
  60.     }
  61. }
  62.  
  63. #kyle {
  64.     position: absolute;
  65.     width: 20vh;
  66.     height: 20vh;
  67.     left: 50%;
  68.     top: 50%;
  69.     transform: translate(-50%, -50%);
  70.     background-color: #fff8
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement