|
| 1 | +html, body { |
| 2 | + width: 100%; |
| 3 | + height: 100%; |
| 4 | + margin: 0px; |
| 5 | + padding: 0px; |
| 6 | + overflow: hidden; |
| 7 | + display: flex; |
| 8 | +} |
| 9 | + |
| 10 | +div[class*=wrapper] { |
| 11 | + height: 100%; |
| 12 | + width: 50%; |
| 13 | + display: flex; |
| 14 | + justify-content: center; |
| 15 | + align-items: center; |
| 16 | +} |
| 17 | +div[class*=loader] { |
| 18 | + position: relative; |
| 19 | + width: 200px; |
| 20 | + height: 200px; |
| 21 | +} |
| 22 | +/* |
| 23 | +======================= |
| 24 | + Square Preloader |
| 25 | +======================= |
| 26 | +*/ |
| 27 | +.first-wrapper { |
| 28 | + background-color: rgba(36,38,45,1.0); |
| 29 | +} |
| 30 | + |
| 31 | +.square { |
| 32 | + width: 50px; |
| 33 | + height: 50px; |
| 34 | + background-color: rgba(255,255,255,0); |
| 35 | + margin-right: auto; |
| 36 | + margin-left: auto; |
| 37 | + border: 2px solid rgba(102,204,255,1.0); |
| 38 | + left: 73px; |
| 39 | + top: 73px; |
| 40 | + position: absolute; |
| 41 | +} |
| 42 | + |
| 43 | +.square-loader { |
| 44 | + transform: rotate(45deg); |
| 45 | +} |
| 46 | + |
| 47 | +.first_square { |
| 48 | + animation: first_square_animate 2s infinite ease-in-out; |
| 49 | +} |
| 50 | +.second_square { |
| 51 | + animation: second_square 5s forwards, |
| 52 | + second_square_animate 5s infinite ease-in-out; |
| 53 | +} |
| 54 | +.third_square { |
| 55 | + animation: third_square 3s forwards, |
| 56 | + third_square_animate 3s infinite ease-in-out; |
| 57 | +} |
| 58 | + |
| 59 | +@keyframes second_square { |
| 60 | + 100% { width: 100px; height:100px; left: 48px; top: 48px; } |
| 61 | +} |
| 62 | + |
| 63 | +@keyframes third_square { |
| 64 | + 100% { width: 150px; height:150px; left: 23px; top: 23px;} |
| 65 | +} |
| 66 | + |
| 67 | +@keyframes first_square_animate { |
| 68 | + 0% { transform: perspective(100px) rotateX(0deg) rotateY(0deg);} |
| 69 | + 50% { transform: perspective(100px) rotateX(-180deg) rotateY(0deg); } |
| 70 | + 100% { transform: perspective(100px) rotateX(-180deg) rotateY(-180deg); } |
| 71 | +} |
| 72 | + |
| 73 | +@keyframes second_square_animate { |
| 74 | + 0% { transform: perspective(200px) rotateX(0deg) rotateY(0deg); } |
| 75 | + 50% { transform: perspective(200px) rotateX(180deg) rotateY(0deg); } |
| 76 | + 100% { transform: perspective(200px) rotateX(180deg) rotateY(180deg); } |
| 77 | +} |
| 78 | + |
| 79 | +@keyframes third_square_animate { |
| 80 | + 0% { transform: perspective(300px) rotateX(0deg) rotateY(0deg); } |
| 81 | + 50% { transform: perspective(300px) rotateX(-180deg) rotateY(0deg); } |
| 82 | + 100% { transform: perspective(300px) rotateX(-180deg) rotateY(-180deg); } |
| 83 | +} |
0 commit comments