You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to animate the viewBox property of an SVG element. It seems that "viewBox" is converted to "view-box". I tried to use "viewbox" instead, but the property "viewbox" will be ignored by most browsers.
CodeSandbox demo from this existing demo (Line 18 was added and line 30 was changed). By inspecting the SVG element and scrolling down a little, it should show the described behavior.
Environment
react-spring v8.0.19
react v16.8.6
The text was updated successfully, but these errors were encountered:
I just ran into this problem on v8, and using the "next" version which installed 9.0.0-rc.3 fixed the issue I had with animating viewBox in a chain of springs.
🐛 Bug Report
I was trying to animate the viewBox property of an SVG element. It seems that "viewBox" is converted to "view-box". I tried to use "viewbox" instead, but the property "viewbox" will be ignored by most browsers.
To Reproduce
<animated.svg viewBox={interpViewBox}>...</animated.svg>
renders to
<svg viewBox="...(initial interp. value of spring)..." view-box="...(animated values)...">...</svg>
Expected behavior
<animated.svg viewBox={interpViewBox}>...</animated.svg>
should render to
<svg viewBox="...(initial/animated values)...">...</svg>
Link to repro
CodeSandbox demo from this existing demo (Line 18 was added and line 30 was changed). By inspecting the SVG element and scrolling down a little, it should show the described behavior.
Environment
react-spring
v8.0.19react
v16.8.6The text was updated successfully, but these errors were encountered: