@hortonstudio/main 1.1.24 → 1.1.25

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.
@@ -281,12 +281,14 @@ export async function init() {
281
281
  elementsClass = 'words';
282
282
  }
283
283
 
284
+ // Match text.js element state exactly - set autoAlpha before splitting
285
+ gsap.set(textElement, { autoAlpha: 1 });
286
+
284
287
  const split = SplitText.create(textElement, splitConfig);
285
288
  split.elementsClass = elementsClass;
286
289
  headingSplits.push(split);
287
290
 
288
291
  gsap.set(split[elementsClass], { yPercent: config.headingSplit.yPercent });
289
- gsap.set(textElement, { autoAlpha: 1 });
290
292
  });
291
293
  }
292
294
 
@@ -325,12 +327,14 @@ export async function init() {
325
327
  elementsClass = 'words';
326
328
  }
327
329
 
330
+ // Match text.js element state exactly - set autoAlpha before splitting
331
+ gsap.set(textElement, { autoAlpha: 1 });
332
+
328
333
  const split = SplitText.create(textElement, splitConfig);
329
334
  split.elementsClass = elementsClass;
330
335
  subheadingSplits.push(split);
331
336
 
332
337
  gsap.set(split[elementsClass], { yPercent: config.subheadingSplit.yPercent });
333
- gsap.set(textElement, { autoAlpha: 1 });
334
338
  });
335
339
  }
336
340
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hortonstudio/main",
3
- "version": "1.1.24",
3
+ "version": "1.1.25",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {