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 +9 -8
- components/fireworks.js +12 -2
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 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
|
|
|
|
|
|
| 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);
|