@@ -59,7 +59,6 @@ export default function WaitlistForm() {
5959 linesClass : 'title-line' ,
6060 } ) ;
6161
62- // Apply gradient styling to characters
6362 split . chars . forEach ( ( char : Element ) => {
6463 ( char as HTMLElement ) . style . background =
6564 'linear-gradient(180deg, #69726D 0%, #FFF 100%)' ;
@@ -71,9 +70,7 @@ export default function WaitlistForm() {
7170
7271 setTitleSplit ( split ) ;
7372
74- // Create a more sophisticated timeline with multiple animation layers
7573 const animation = tl
76- // Initial state - characters scattered and rotated
7774 . set ( split . chars , {
7875 opacity : 0 ,
7976 y : 'random(-100, 100)' ,
@@ -82,7 +79,6 @@ export default function WaitlistForm() {
8279 scale : 0 ,
8380 transformOrigin : '50% 50%' ,
8481 } )
85- // First wave - characters fly in from random positions
8682 . to ( split . chars , {
8783 opacity : 1 ,
8884 y : 0 ,
@@ -96,7 +92,6 @@ export default function WaitlistForm() {
9692 from : 'random' ,
9793 } ,
9894 } )
99- // Second wave - words scale up with bounce effect
10095 . to (
10196 split . words ,
10297 {
@@ -116,7 +111,6 @@ export default function WaitlistForm() {
116111 } ,
117112 '-=0.2'
118113 )
119- // Third wave - 3D rotation effect on lines
120114 . to (
121115 split . lines ,
122116 {
@@ -138,7 +132,6 @@ export default function WaitlistForm() {
138132 } ,
139133 '-=0.2'
140134 )
141- // Add subtle continuous breathing animation
142135 . to (
143136 split . words ,
144137 {
@@ -154,7 +147,6 @@ export default function WaitlistForm() {
154147
155148 setTitleAnimation ( animation ) ;
156149
157- // Add magnetic effect to title
158150 const titleElement = titleRef . current ;
159151 if ( titleElement ) {
160152 titleElement . addEventListener ( 'mousemove' , e => {
@@ -190,7 +182,6 @@ export default function WaitlistForm() {
190182
191183 setSubtitleSplit ( split ) ;
192184
193- // Apply gradient styling to words
194185 split . words . forEach ( ( word : Element ) => {
195186 ( word as HTMLElement ) . style . background =
196187 'linear-gradient(273deg, rgba(167, 249, 80, 0.50) 13.84%, #3AE6B2 73.28%)' ;
@@ -200,18 +191,15 @@ export default function WaitlistForm() {
200191 ( word as HTMLElement ) . style . color = 'transparent' ;
201192 } ) ;
202193
203- // Create a more dynamic subtitle animation
204194 const animation = gsap
205195 . timeline ( )
206- // Initial state - words hidden and transformed
207196 . from ( split . words , {
208197 opacity : 0 ,
209198 y : 100 ,
210199 rotationX : - 90 ,
211200 transformOrigin : '50% 50% -50px' ,
212201 scale : 0.5 ,
213202 } )
214- // Words reveal with 3D flip effect
215203 . to ( split . words , {
216204 opacity : 1 ,
217205 y : 0 ,
@@ -222,7 +210,6 @@ export default function WaitlistForm() {
222210 stagger : 0.15 ,
223211 delay : 1.2 ,
224212 } )
225- // Add a subtle floating animation
226213 . to (
227214 split . words ,
228215 {
@@ -235,7 +222,6 @@ export default function WaitlistForm() {
235222 } ,
236223 '-=0.5'
237224 )
238- // Add glow effect
239225 . to (
240226 split . chars ,
241227 {
@@ -250,7 +236,6 @@ export default function WaitlistForm() {
250236
251237 setSubtitleAnimation ( animation ) ;
252238
253- // Add magnetic effect to subtitle
254239 const subtitleElement = subtitleRef . current ;
255240 if ( subtitleElement ) {
256241 subtitleElement . addEventListener ( 'mousemove' , e => {
@@ -374,7 +359,6 @@ export default function WaitlistForm() {
374359 setIsSubmitting ( true ) ;
375360
376361 try {
377- // Split name into firstName and lastName, handling edge cases
378362 const nameParts = values . name
379363 . trim ( )
380364 . split ( ' ' )
@@ -399,10 +383,8 @@ export default function WaitlistForm() {
399383 if ( titleAnimation && titleSplit ) {
400384 titleAnimation . revert ( ) ;
401385
402- // Create a new dynamic animation on each click
403386 const newAnimation = gsap
404387 . timeline ( )
405- // Scatter characters randomly
406388 . to ( titleSplit . chars , {
407389 x : 'random(-300, 300)' ,
408390 y : 'random(-200, 200)' ,
@@ -412,7 +394,6 @@ export default function WaitlistForm() {
412394 duration : 0.5 ,
413395 ease : 'power2.in' ,
414396 } )
415- // Bring them back with different effects
416397 . to ( titleSplit . chars , {
417398 x : 0 ,
418399 y : 0 ,
@@ -426,7 +407,6 @@ export default function WaitlistForm() {
426407 from : 'random' ,
427408 } ,
428409 } )
429- // Add a wave effect
430410 . to (
431411 titleSplit . words ,
432412 {
@@ -448,10 +428,8 @@ export default function WaitlistForm() {
448428 if ( subtitleAnimation && subtitleSplit ) {
449429 subtitleAnimation . revert ( ) ;
450430
451- // Create a morphing text effect
452431 const newAnimation = gsap
453432 . timeline ( )
454- // First, morph the text out
455433 . to ( subtitleSplit . words , {
456434 scale : 0 ,
457435 rotationY : 180 ,
@@ -460,7 +438,6 @@ export default function WaitlistForm() {
460438 ease : 'power2.in' ,
461439 stagger : 0.05 ,
462440 } )
463- // Then morph it back in with 3D effects
464441 . to ( subtitleSplit . words , {
465442 scale : 1 ,
466443 rotationY : 0 ,
@@ -469,7 +446,6 @@ export default function WaitlistForm() {
469446 ease : 'back.out(1.7)' ,
470447 stagger : 0.1 ,
471448 } )
472- // Add a ripple effect
473449 . to (
474450 subtitleSplit . chars ,
475451 {
0 commit comments