@hortonstudio/main 1.1.20 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/animations/hero.js +5 -0
- package/package.json +1 -1
package/animations/hero.js
CHANGED
@@ -244,6 +244,9 @@ export async function init() {
|
|
244
244
|
// Animation timeline
|
245
245
|
document.fonts.ready.then(() => {
|
246
246
|
|
247
|
+
// Wait for layout to stabilize before splitting text
|
248
|
+
setTimeout(() => {
|
249
|
+
|
247
250
|
// Split text setup (after fonts are loaded)
|
248
251
|
headingSplits = [];
|
249
252
|
|
@@ -511,6 +514,8 @@ export async function init() {
|
|
511
514
|
|
512
515
|
}, config.global.animationDelay * 1000);
|
513
516
|
|
517
|
+
}, 100); // Wait 100ms for layout to stabilize
|
518
|
+
|
514
519
|
});
|
515
520
|
|
516
521
|
// API exposure
|