|
| 1 | +@keyframes moveInCircle { |
| 2 | + 0% { |
| 3 | + transform: rotate(0deg); |
| 4 | + } |
| 5 | + 50% { |
| 6 | + transform: rotate(180deg); |
| 7 | + } |
| 8 | + 100% { |
| 9 | + transform: rotate(360deg); |
| 10 | + } |
| 11 | +} |
| 12 | + |
| 13 | +@keyframes moveVertical { |
| 14 | + 0% { |
| 15 | + transform: translateY(-50%); |
| 16 | + } |
| 17 | + 50% { |
| 18 | + transform: translateY(50%); |
| 19 | + } |
| 20 | + 100% { |
| 21 | + transform: translateY(-50%); |
| 22 | + } |
| 23 | +} |
| 24 | + |
| 25 | +@keyframes moveHorizontal { |
| 26 | + 0% { |
| 27 | + transform: translateX(-50%) translateY(-10%); |
| 28 | + } |
| 29 | + 50% { |
| 30 | + transform: translateX(50%) translateY(10%); |
| 31 | + } |
| 32 | + 100% { |
| 33 | + transform: translateX(-50%) translateY(-10%); |
| 34 | + } |
| 35 | +} |
| 36 | + |
| 37 | +.gradientBg { |
| 38 | + z-index: -100; |
| 39 | + position: fixed; |
| 40 | + width: 100%; |
| 41 | + /* height: 100%; */ |
| 42 | + overflow: hidden; |
| 43 | + background: black; |
| 44 | + inset: calc(0.25rem * 0); |
| 45 | + |
| 46 | + .gradientsContainer { |
| 47 | + filter: url(#goo) blur(40px); |
| 48 | + width: 100%; |
| 49 | + height: 100%; |
| 50 | + } |
| 51 | + |
| 52 | + .g1 { |
| 53 | + position: absolute; |
| 54 | + background: radial-gradient( |
| 55 | + circle at center, |
| 56 | + rgba(18, 113, 255, 0.8) 0, |
| 57 | + rgba(18, 113, 255, 0) 50% |
| 58 | + ) |
| 59 | + no-repeat; |
| 60 | + mix-blend-mode: hard-light; |
| 61 | + |
| 62 | + width: 80%; |
| 63 | + height: 80%; |
| 64 | + top: calc(50% - 80% / 2); |
| 65 | + left: calc(50% - 80% / 2); |
| 66 | + |
| 67 | + transform-origin: center center; |
| 68 | + animation: moveVertical 30s ease infinite; |
| 69 | + |
| 70 | + opacity: 1; |
| 71 | + } |
| 72 | + |
| 73 | + .g2 { |
| 74 | + position: absolute; |
| 75 | + background: radial-gradient( |
| 76 | + circle at center, |
| 77 | + rgba(107, 74, 255, 0.8) 0, |
| 78 | + rgba(107, 74, 255, 0) 50% |
| 79 | + ) |
| 80 | + no-repeat; |
| 81 | + mix-blend-mode: hard-light; |
| 82 | + |
| 83 | + width: 80%; |
| 84 | + height: 80%; |
| 85 | + top: calc(50% - 80% / 2); |
| 86 | + left: calc(50% - 80% / 2); |
| 87 | + |
| 88 | + transform-origin: calc(50% - 400px); |
| 89 | + animation: moveInCircle 20s reverse infinite; |
| 90 | + |
| 91 | + opacity: 1; |
| 92 | + } |
| 93 | + |
| 94 | + .g3 { |
| 95 | + position: absolute; |
| 96 | + background: radial-gradient( |
| 97 | + circle at center, |
| 98 | + rgba(100, 100, 255, 0.8) 0, |
| 99 | + rgba(100, 100, 255, 0) 50% |
| 100 | + ) |
| 101 | + no-repeat; |
| 102 | + mix-blend-mode: hard-light; |
| 103 | + |
| 104 | + width: 80%; |
| 105 | + height: 80%; |
| 106 | + top: calc(50% - 80% / 2 + 200px); |
| 107 | + left: calc(50% - 80% / 2 - 500px); |
| 108 | + |
| 109 | + transform-origin: calc(50% + 400px); |
| 110 | + animation: moveInCircle 40s linear infinite; |
| 111 | + |
| 112 | + opacity: 1; |
| 113 | + } |
| 114 | + |
| 115 | + .g4 { |
| 116 | + position: absolute; |
| 117 | + background: radial-gradient( |
| 118 | + circle at center, |
| 119 | + rgba(50, 160, 220, 0.8) 0, |
| 120 | + rgba(50, 160, 220, 0) 50% |
| 121 | + ) |
| 122 | + no-repeat; |
| 123 | + mix-blend-mode: hard-light; |
| 124 | + |
| 125 | + width: 80%; |
| 126 | + height: 80%; |
| 127 | + top: calc(50% - 80% / 2); |
| 128 | + left: calc(50% - 80% / 2); |
| 129 | + |
| 130 | + transform-origin: calc(50% - 200px); |
| 131 | + animation: moveHorizontal 40s ease infinite; |
| 132 | + |
| 133 | + opacity: 0.7; |
| 134 | + } |
| 135 | + |
| 136 | + .g5 { |
| 137 | + position: absolute; |
| 138 | + background: radial-gradient( |
| 139 | + circle at center, |
| 140 | + rgba(80, 47, 122, 0.8) 0, |
| 141 | + rgba(80, 47, 122, 0) 50% |
| 142 | + ) |
| 143 | + no-repeat; |
| 144 | + mix-blend-mode: hard-light; |
| 145 | + |
| 146 | + width: calc(80% * 2); |
| 147 | + height: calc(80% * 2); |
| 148 | + top: calc(50% - 80%); |
| 149 | + left: calc(50% - 80%); |
| 150 | + |
| 151 | + transform-origin: calc(50% - 800px) calc(50% + 200px); |
| 152 | + animation: moveInCircle 20s ease infinite; |
| 153 | + |
| 154 | + opacity: 1; |
| 155 | + } |
| 156 | +} |
0 commit comments