Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSSPlugin: Error: <rect> attribute transform: Expected number, "…atrix(1,0,0,1,0,NaN)". #599

Open
maxdaniel98-sf opened this issue Oct 10, 2024 · 0 comments

Comments

@maxdaniel98-sf
Copy link

Hi all,

I'm sometimes getting this transform error which comes from the CSSPlugin module:

Error: attribute transform: Expected number, "…atrix(1,0,0,1,0,NaN)".

The error orginates from line 878 of the CSSPlugin.js file:

GSAP/src/CSSPlugin.js

Lines 877 to 878 in f836a3f

temp = "matrix(" + a11 + "," + a21 + "," + a12 + "," + a22 + "," + tx + "," + ty + ")";
target.setAttribute("transform", temp);

From what I'm able to see is that it might occur when the height of a rectangle (or other SVG element) has a height of 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant