Closed LoganDark closed 2 months ago
why do you expect className to be animated value?
why do you expect className to be animated value?
I expect when I set className={springValue}
for the className
prop to be animated, not a class-name
attribute. I don't expect className
to always be anything in particular, I just want it to work in the rare case that I do want to animate it.
(If I pass class={springValue}
it works, but that isn't idiomatic React.)
Which react-spring target are you using?
@react-spring/web
@react-spring/three
@react-spring/native
@react-spring/konva
@react-spring/zdog
What version of react-spring are you using?
9.7.3
What's Wrong?
<animated.div className={springValue} />
only updatesclassName
each React render. When thespringValue
updates, then aclass-name
attribute is updated instead ofclassName
.To Reproduce
Pass a
FluidValue
className
to anAnimatedComponent
.Expected Behaviour
className
should be updated, notclass-name
.Link to repo
https://codesandbox.io/p/sandbox/dawn-platform-vclx4j