gclass-anims 1.0.0-beta.11 → 1.0.0-beta.12
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/CHANGELOG.md +4 -0
- package/Listeners.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `gclass-anims` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.0.0-beta.12] - 2026-08-26
|
|
6
|
+
|
|
7
|
+
- Fixed `scramble` with `scroll-progress` throwing `can't convert undefined to object` — `computeTo` (`Listeners.js:424`) and scrub `to` builder (`Listeners.js:867`) now guard `from` (`scramble` has no `from`).
|
|
8
|
+
|
|
5
9
|
## [1.0.0-beta.11] - 2026-08-26
|
|
6
10
|
|
|
7
11
|
- Fixed `.draw-split` infinite loop when paired with `.appear` — `splitPaths` (`Animations.js:244`) now strips `appear`/`scroll`/`scroll-progress`/`draw`/`draw-split`/`data-gsap-*` from cloned segments, marks children with `data-gsap-split` + `contain:paint`/`will-change:transform` isolation, and prevents `appearObserver` (`Listeners.js:1559`) re-triggering. Also isolated `draw-split` demos in docs.
|
package/Listeners.js
CHANGED
|
@@ -423,7 +423,7 @@ export default function initListeners() {
|
|
|
423
423
|
// the drawn end state is the full stroke.
|
|
424
424
|
const computeTo = (from) => {
|
|
425
425
|
const to = {}
|
|
426
|
-
for (const [key] of Object.entries(from)) {
|
|
426
|
+
for (const [key] of Object.entries(from || {})) {
|
|
427
427
|
if (key === "opacity") to[key] = 1
|
|
428
428
|
else if (key === "filter") to[key] = "blur(0px)"
|
|
429
429
|
else if (key === "clipPath") to[key] = "inset(0% 0% 0% 0%)"
|
|
@@ -864,7 +864,7 @@ export default function initListeners() {
|
|
|
864
864
|
: getEase(el)
|
|
865
865
|
|
|
866
866
|
const to = {}
|
|
867
|
-
for (const [key] of Object.entries(from)) {
|
|
867
|
+
for (const [key] of Object.entries(from || {})) {
|
|
868
868
|
if (key === "opacity") to[key] = 1
|
|
869
869
|
else if (key === "filter") to[key] = "blur(0px)"
|
|
870
870
|
else if (key === "text") to[key] = stashText(el)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gclass-anims",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.12",
|
|
4
4
|
"description": "A Tailwind-style utility layer on top of GSAP. Framework-agnostic — works in vanilla JS, React, Vue, Svelte, or any bundler.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|