Framer-Motion: How to Animate gradientTransform?

Viewed 1888

I'm using the framer-motion library in React. I have a <motion.linearGradient> component.

I'm wondering how do I animate the gradientTransform property?

I'd like to do something like gradientTransform: "rotate(90)" and animate rotating the gradient between 0 degrees and 90 degrees.

I'm not sure how to do that because gradientTransform's value is a string and none of the solutions I've tried yet have worked.

1 Answers
Related