-
I'm getting a flurry of warnings when interpolating the emissive color with react-spring. CodeSandbox |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
this is because of spring overshooting. the warnings are harmless. if it bothers you, clamp it: spring.to({ range: [0, 1], output: ['#000000', '#e45858'], extrapolate: 'clamp' }) if you give springs mass, they will naturally overshoot, so going below 0 and over 1. by default it tries to extend. by clamping it you force up these values. |
Beta Was this translation helpful? Give feedback.
this is because of spring overshooting. the warnings are harmless. if it bothers you, clamp it:
if you give springs mass, they will naturally overshoot, so going below 0 and over 1. by default it tries to extend. by clamping it you force up these values.