OShayL commited on
Commit
eccba84
·
verified ·
1 Parent(s): fb2ed40

create animated gradient background for page

Browse files
Files changed (1) hide show
  1. article-3-ad-account-restrictions.html +126 -53
article-3-ad-account-restrictions.html CHANGED
@@ -56,8 +56,7 @@
56
  color: #e5e7eb;
57
  position: relative;
58
  }
59
-
60
- /* Animated Gradient Background */
61
  html::before {
62
  content: '';
63
  position: fixed;
@@ -65,86 +64,160 @@
65
  left: 0;
66
  width: 100%;
67
  height: 100%;
68
- background: linear-gradient(-45deg,
69
- #0b1220,
70
- #1a1f3a,
71
- #2d1b4e,
72
- #0f172a,
73
- #1e1b4b,
74
- #312e81
75
- );
76
- background-size: 400% 400%;
77
- animation: gradientShift 15s ease infinite;
78
- z-index: -3;
 
 
 
 
79
  }
80
-
81
- /* Additional Animated Gradient Layer */
82
  html::after {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  content: '';
84
  position: fixed;
85
  top: 0;
86
  left: 0;
87
  width: 100%;
88
  height: 100%;
89
- background: radial-gradient(
90
- circle at 25% 25%,
91
- rgba(99, 102, 241, 0.15) 0%,
92
- transparent 50%
93
- ),
94
- radial-gradient(
95
- circle at 75% 75%,
96
- rgba(34, 211, 238, 0.12) 0%,
97
- transparent 50%
98
- ),
99
- radial-gradient(
100
- circle at 50% 50%,
101
- rgba(168, 85, 247, 0.1) 0%,
102
- transparent 50%
103
- );
104
- background-size: 300% 300%, 200% 200%, 150% 150%;
105
- animation: gradientFloat 20s ease-in-out infinite;
106
  z-index: -2;
107
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
 
109
  @keyframes gradientShift {
110
  0% {
111
- background-position: 0% 50%;
112
- filter: hue-rotate(0deg);
113
  }
114
  25% {
115
- background-position: 100% 50%;
116
- filter: hue-rotate(90deg);
117
  }
118
  50% {
119
- background-position: 100% 100%;
120
- filter: hue-rotate(180deg);
121
  }
122
  75% {
123
- background-position: 0% 100%;
124
- filter: hue-rotate(270deg);
125
  }
126
  100% {
127
- background-position: 0% 50%;
128
- filter: hue-rotate(360deg);
129
  }
130
  }
131
-
132
- @keyframes gradientFloat {
133
- 0%, 100% {
134
- transform: translate(0%, 0%) scale(1);
 
 
 
 
 
 
 
 
135
  opacity: 1;
136
  }
137
- 33% {
138
- transform: translate(2%, -2%) scale(1.05);
 
 
 
 
139
  opacity: 0.8;
140
  }
141
- 66% {
142
- transform: translate(-2%, 2%) scale(0.95);
143
- opacity: 0.9;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  }
145
  }
146
-
147
- .text-gradient {
 
 
 
 
 
 
 
 
 
 
148
  background: linear-gradient(90deg, #a78bfa 0%, #22d3ee 50%, #34d399 100%);
149
  background-size: 200% 200%;
150
  -webkit-background-clip: text;
 
56
  color: #e5e7eb;
57
  position: relative;
58
  }
59
+ /* Enhanced Animated Gradient Background */
 
60
  html::before {
61
  content: '';
62
  position: fixed;
 
64
  left: 0;
65
  width: 100%;
66
  height: 100%;
67
+ background:
68
+ radial-gradient(ellipse 1200px 800px at 20% 30%, rgba(139, 92, 246, 0.3) 0%, transparent 70%),
69
+ radial-gradient(ellipse 1000px 600px at 80% 20%, rgba(59, 130, 246, 0.25) 0%, transparent 70%),
70
+ radial-gradient(ellipse 900px 700px at 40% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 70%),
71
+ radial-gradient(ellipse 600px 400px at 70% 60%, rgba(236, 72, 153, 0.18) 0%, transparent 70%),
72
+ linear-gradient(-45deg,
73
+ #0b1220 0%,
74
+ #1e1b4b 25%,
75
+ #312e81 50%,
76
+ #1a1f3a 75%,
77
+ #0f172a 100%
78
+ );
79
+ background-attachment: fixed;
80
+ animation: gradientShift 25s ease-in-out infinite, gradientHue 20s linear infinite;
81
+ z-index: -4;
82
  }
83
+
84
+ /* Primary Gradient Layer */
85
  html::after {
86
+ content: '';
87
+ position: fixed;
88
+ top: 0;
89
+ left: 0;
90
+ width: 120%;
91
+ height: 120%;
92
+ background:
93
+ conic-gradient(from 0deg at 50% 50%,
94
+ rgba(99, 102, 241, 0.1) 0deg,
95
+ rgba(168, 85, 247, 0.08) 72deg,
96
+ rgba(34, 211, 238, 0.06) 144deg,
97
+ rgba(16, 185, 129, 0.1) 216deg,
98
+ rgba(245, 101, 101, 0.08) 288deg,
99
+ rgba(99, 102, 241, 0.1) 360deg
100
+ );
101
+ animation: conicSpin 30s linear infinite;
102
+ transform-origin: center;
103
+ z-index: -3;
104
+ }
105
+
106
+ /* Floating Orbs Container */
107
+ body::before {
108
  content: '';
109
  position: fixed;
110
  top: 0;
111
  left: 0;
112
  width: 100%;
113
  height: 100%;
114
+ background:
115
+ radial-gradient(circle 300px at 15% 20%, rgba(120, 119, 198, 0.4) 0%, transparent 60%),
116
+ radial-gradient(circle 250px at 85% 80%, rgba(255, 119, 198, 0.3) 0%, transparent 60%),
117
+ radial-gradient(circle 200px at 60% 40%, rgba(59, 130, 246, 0.35) 0%, transparent 60%),
118
+ radial-gradient(circle 180px at 30% 70%, rgba(16, 185, 129, 0.25) 0%, transparent 60%),
119
+ radial-gradient(circle 220px at 90% 30%, rgba(139, 92, 246, 0.3) 0%, transparent 60%);
120
+ animation: floatingOrbs 18s ease-in-out infinite;
 
 
 
 
 
 
 
 
 
 
121
  z-index: -2;
122
  }
123
+
124
+ /* Additional Glow Layer */
125
+ body::after {
126
+ content: '';
127
+ position: fixed;
128
+ top: 0;
129
+ left: 0;
130
+ width: 100%;
131
+ height: 100%;
132
+ background:
133
+ radial-gradient(ellipse 600px 400px at 25% 25%, rgba(99, 102, 241, 0.2) 0%, transparent 70%),
134
+ radial-gradient(ellipse 500px 350px at 75% 75%, rgba(34, 211, 238, 0.15) 0%, transparent 70%),
135
+ radial-gradient(ellipse 400px 300px at 50% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
136
+ animation: pulseGlow 12s ease-in-out infinite alternate;
137
+ z-index: -1;
138
+ }
139
 
140
  @keyframes gradientShift {
141
  0% {
142
+ background-position: 0% 0%, 100% 0%, 50% 100%, 0% 100%, 100% 100%;
143
+ transform: scale(1) rotate(0deg);
144
  }
145
  25% {
146
+ background-position: 100% 0%, 0% 100%, 100% 50%, 0% 0%, 50% 0%;
147
+ transform: scale(1.02) rotate(1deg);
148
  }
149
  50% {
150
+ background-position: 100% 100%, 0% 0%, 50% 0%, 100% 50%, 0% 100%;
151
+ transform: scale(1.05) rotate(2deg);
152
  }
153
  75% {
154
+ background-position: 0% 100%, 100% 0%, 0% 50%, 50% 100%, 100% 0%;
155
+ transform: scale(1.02) rotate(1deg);
156
  }
157
  100% {
158
+ background-position: 0% 0%, 100% 0%, 50% 100%, 0% 100%, 100% 100%;
159
+ transform: scale(1) rotate(0deg);
160
  }
161
  }
162
+
163
+ @keyframes gradientHue {
164
+ 0% {
165
+ filter: hue-rotate(0deg) saturate(1.2);
166
+ opacity: 0.8;
167
+ }
168
+ 25% {
169
+ filter: hue-rotate(90deg) saturate(1.4);
170
+ opacity: 0.9;
171
+ }
172
+ 50% {
173
+ filter: hue-rotate(180deg) saturate(1.6);
174
  opacity: 1;
175
  }
176
+ 75% {
177
+ filter: hue-rotate(270deg) saturate(1.4);
178
+ opacity: 0.9;
179
+ }
180
+ 100% {
181
+ filter: hue-rotate(360deg) saturate(1.2);
182
  opacity: 0.8;
183
  }
184
+ }
185
+
186
+ @keyframes conicSpin {
187
+ 0% { transform: rotate(0deg) scale(1.1); }
188
+ 100% { transform: rotate(360deg) scale(1.1); }
189
+ }
190
+
191
+ @keyframes floatingOrbs {
192
+ 0%, 100% {
193
+ transform: translate(0%, 0%) scale(1);
194
+ filter: blur(0px);
195
+ }
196
+ 25% {
197
+ transform: translate(3%, -2%) scale(1.05);
198
+ filter: blur(1px);
199
+ }
200
+ 50% {
201
+ transform: translate(-2%, 3%) scale(0.98);
202
+ filter: blur(0.5px);
203
+ }
204
+ 75% {
205
+ transform: translate(2%, -1%) scale(1.02);
206
+ filter: blur(1.5px);
207
  }
208
  }
209
+
210
+ @keyframes pulseGlow {
211
+ 0% {
212
+ opacity: 0.6;
213
+ transform: scale(1) rotate(0deg);
214
+ }
215
+ 100% {
216
+ opacity: 1;
217
+ transform: scale(1.02) rotate(0.5deg);
218
+ }
219
+ }
220
+ .text-gradient {
221
  background: linear-gradient(90deg, #a78bfa 0%, #22d3ee 50%, #34d399 100%);
222
  background-size: 200% 200%;
223
  -webkit-background-clip: text;