This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
[Bug] Animation loses unit in certain circumstances (using spring easing and CSS custom props) #216
Labels
Bug
Bug report
1. Describe the bug
I am animating an element's
x
from -50% to 50% by setting a custom property, using a spring easing. This works, until I trigger an animation on the parent, at which point the child's custom prop loses its unit. As soon as I trigger the animation on the child again, it fixes itself.This might be related to #126 and/or #179 , not sure.
2. IMPORTANT: Provide a CodeSandbox reproduction of the bug
https://codesandbox.io/s/animating-offset-of-element-via-custom-props-98myj5?file=/src/index.js
3. Steps to reproduce
(So far so good)
<percentage>
syntax, so when assigned an invalid unitless value it falls back to its default)4. Expected behavior
The unit of the animated property remains intact.
5. Browser details
Vivaldi 6.1.3035.302 (Chromium 114.0.5735.321)
also tested in Chrome 116.0.5845.111
The text was updated successfully, but these errors were encountered: