1

react-move/Animate error: "Warning: NaN is an invalid value for the background css style property."

Original code was this:

           enter={{
                background: [stripe.background],
            }}

SOLUTION:

I changed the value of the background property to a string literal and that fixed the issue.

           enter={{
                 background: `${stripe.background}`,
            }}

1 Answers1

-1

but it not making animation. in this case, you can just write

background: stripe.background

see in this link React-Move animation background color change