Fazbeeer commited on
Commit
ad7e3df
·
verified ·
1 Parent(s): 3564858

right now we currently have the "amplify your 2026!" and the firework annimation please remove it after 6 secound, thank you

Browse files
components/amplify-2026.js CHANGED
@@ -171,10 +171,12 @@ class Amplify2026 extends HTMLElement {
171
 
172
  requestAnimationFrame(animate);
173
  }
174
-
175
- // Start animation
176
  setTimeout(animate, 1000);
177
- }
 
 
 
178
  }
179
 
180
  customElements.define('amplify-2026', Amplify2026);
 
171
 
172
  requestAnimationFrame(animate);
173
  }
174
+ // Start animation and set timeout to remove element
 
175
  setTimeout(animate, 1000);
176
+ setTimeout(() => {
177
+ this.remove();
178
+ }, 6000);
179
+ }
180
  }
181
 
182
  customElements.define('amplify-2026', Amplify2026);
components/fireworks.js CHANGED
@@ -127,10 +127,12 @@ 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 and set timeout to remove element
 
131
  setTimeout(launchRocket, 500);
132
  animate();
133
+ setTimeout(() => {
134
+ this.remove();
135
+ }, 6000);
136
+ }
137
  }
138
  customElements.define('fireworks-animation', FireworksAnimation);