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

At the home scsection of the website we currently have the "AMPLIFY YOUR 2026" I love it but can you make it slowly fade after 4 secound

Browse files
Files changed (1) hide show
  1. components/amplify-2026.js +10 -2
components/amplify-2026.js CHANGED
@@ -171,10 +171,18 @@ 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
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
 
188
  customElements.define('amplify-2026', Amplify2026);