-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
🐛 Bug Report
I got this error and was having a difficult time finding what was causing it, I found out why.
Leaving this here if someone else stumbles upon this.
My mistake was having the timing without a 0 in front : transition: all .20s linear
Changing it to transition: all 0.20s linear got rid of the error.
Example:
<Transition
items={stuffs}
keys={stuffs.map((_item, i) => i)}
from={{ opacity: 0, transform: 'scaleY(1)', height: 'auto', transition: 'all 0.09s linear' }}
enter={{ opacity: 1, transform: 'scaleY(1)', height: 'auto', transition: 'all 0.13s ease' }}
leave={{ opacity: 0, transform: 'scaleY(0)', height: 0, transition: 'all 0.13s ease' }}
>
{(styles, stuff, attr) => {
return (
stuff && (
<animated.div key={attr.key} style={styles}>
...
</animated.div>
)
);
}}
</Transition>
Environment
react-springv9.3.0reactv17.0.2
Metadata
Metadata
Assignees
Labels
No labels