Skip to content

Commit fd7c2db

Browse files
Tweak orb animations
Increase speed and intensity of background orbs across AnimatedBackground and design-system CSS by shortening durations, boosting movement ranges, and adjusting keyframes to make orbs more visible and dynamic. Also ensure orb styling remains consistent with updated design system. X-Lovable-Edit-ID: edt-1aa2234a-cb40-44e5-875f-9eec1f3ee038
2 parents 04fdbbc + 7262584 commit fd7c2db

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/components/AnimatedBackground.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const AnimatedBackground: React.FC = () => {
7777
filter: 'blur(90px)',
7878
top: '-5%',
7979
right: '10%',
80-
animation: 'orbFloat 25s ease-in-out infinite, orbPulse 4s ease-in-out infinite alternate',
80+
animation: 'orbFloat 16s ease-in-out infinite, orbPulse 2.5s ease-in-out infinite alternate',
8181
}}
8282
/>
8383

@@ -104,7 +104,7 @@ const AnimatedBackground: React.FC = () => {
104104
filter: 'blur(80px)',
105105
bottom: '10%',
106106
left: '-8%',
107-
animation: 'orbFloat 22s ease-in-out infinite reverse, orbGlow 5s ease-in-out infinite alternate',
107+
animation: 'orbFloat 14s ease-in-out infinite reverse, orbGlow 3s ease-in-out infinite alternate',
108108
}}
109109
/>
110110

@@ -132,7 +132,7 @@ const AnimatedBackground: React.FC = () => {
132132
filter: 'blur(60px)',
133133
top: '25%',
134134
right: '25%',
135-
animation: 'orbFloat 18s ease-in-out infinite 2s',
135+
animation: 'orbFloat 11s ease-in-out infinite 1s',
136136
}}
137137
/>
138138

@@ -145,7 +145,7 @@ const AnimatedBackground: React.FC = () => {
145145
filter: 'blur(50px)',
146146
bottom: '30%',
147147
left: '30%',
148-
animation: 'orbFloat 16s ease-in-out infinite 4s reverse',
148+
animation: 'orbFloat 10s ease-in-out infinite 2s reverse',
149149
}}
150150
/>
151151

@@ -162,10 +162,10 @@ const AnimatedBackground: React.FC = () => {
162162
@keyframes orbPulse {
163163
0% {
164164
transform: scale(1);
165-
opacity: 0.8;
165+
opacity: 0.75;
166166
}
167167
100% {
168-
transform: scale(1.15);
168+
transform: scale(1.2);
169169
opacity: 1;
170170
}
171171
}
@@ -185,32 +185,32 @@ const AnimatedBackground: React.FC = () => {
185185
transform: rotate(0deg) scale(1);
186186
}
187187
33% {
188-
opacity: 0.85;
189-
transform: rotate(3deg) scale(1.02);
188+
opacity: 0.8;
189+
transform: rotate(5deg) scale(1.04);
190190
}
191191
66% {
192-
opacity: 0.95;
193-
transform: rotate(-2deg) scale(0.98);
192+
opacity: 0.9;
193+
transform: rotate(-4deg) scale(0.96);
194194
}
195195
}
196196
197197
@keyframes gradient-shift-secondary {
198198
0%, 100% {
199-
opacity: 0.8;
199+
opacity: 0.75;
200200
transform: rotate(0deg) scale(1);
201201
}
202202
50% {
203203
opacity: 1;
204-
transform: rotate(-3deg) scale(1.03);
204+
transform: rotate(-5deg) scale(1.05);
205205
}
206206
}
207207
208208
.animate-gradient-shift-primary {
209-
animation: gradient-shift-primary 30s ease-in-out infinite;
209+
animation: gradient-shift-primary 18s ease-in-out infinite;
210210
}
211211
212212
.animate-gradient-shift-secondary {
213-
animation: gradient-shift-secondary 25s ease-in-out infinite;
213+
animation: gradient-shift-secondary 15s ease-in-out infinite;
214214
}
215215
`}</style>
216216
</div>

src/styles/design-system.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,13 +1266,13 @@
12661266
transform: translate(0, 0) scale(1);
12671267
}
12681268
25% {
1269-
transform: translate(40px, -25px) scale(1.05);
1269+
transform: translate(60px, -40px) scale(1.08);
12701270
}
12711271
50% {
1272-
transform: translate(-30px, -40px) scale(0.95);
1272+
transform: translate(-50px, -60px) scale(0.92);
12731273
}
12741274
75% {
1275-
transform: translate(-45px, 20px) scale(1.02);
1275+
transform: translate(-65px, 35px) scale(1.05);
12761276
}
12771277
}
12781278

0 commit comments

Comments
 (0)