Fazbeeer commited on
Commit
3384272
·
verified ·
1 Parent(s): 9734609

right now we currently have the "AMPLIFY Your 2026!" please make that and the firework annimation disspare after 2 secound

Browse files
components/amplify-2026.js CHANGED
@@ -173,15 +173,16 @@ class Amplify2026 extends HTMLElement {
173
  }
174
  // Start animation
175
  setTimeout(animate, 1000);
176
-
177
- // Fade out text after 4 seconds
178
  setTimeout(() => {
179
- const textElement = this.shadowRoot.getElementById('amplify-text');
180
- if (textElement) {
181
- textElement.style.transition = 'opacity 2s ease-out';
182
- textElement.style.opacity = '0';
183
- }
184
- }, 4000);
 
 
185
  }
186
  }
187
 
 
173
  }
174
  // Start animation
175
  setTimeout(animate, 1000);
176
+ // Fade out after 2 seconds
 
177
  setTimeout(() => {
178
+ this.style.transition = 'opacity 1s ease-out';
179
+ this.style.opacity = '0';
180
+
181
+ // Remove element after fade out
182
+ setTimeout(() => {
183
+ this.remove();
184
+ }, 1000);
185
+ }, 2000);
186
  }
187
  }
188
 
components/fireworks.js CHANGED
@@ -127,10 +127,20 @@ class FireworksAnimation extends HTMLElement {
127
 
128
  requestAnimationFrame(animate);
129
  }
130
-
131
  // Initial launch
132
  setTimeout(launchRocket, 500);
133
  animate();
134
- }
 
 
 
 
 
 
 
 
 
 
 
135
  }
136
  customElements.define('fireworks-animation', FireworksAnimation);
 
127
 
128
  requestAnimationFrame(animate);
129
  }
 
130
  // Initial launch
131
  setTimeout(launchRocket, 500);
132
  animate();
133
+
134
+ // Remove after 2 seconds
135
+ setTimeout(() => {
136
+ this.style.transition = 'opacity 1s ease-out';
137
+ this.style.opacity = '0';
138
+
139
+ // Remove element after fade out
140
+ setTimeout(() => {
141
+ this.remove();
142
+ }, 1000);
143
+ }, 2000);
144
+ }
145
  }
146
  customElements.define('fireworks-animation', FireworksAnimation);