Replies: 1 comment
-
Kinda late but you can use useAnimationControls and pass the return of that as the animate prop. import { useAnimationControls } from "framer-motion";
/// ...
const controls = useAnimationControls();
const handleClick = () => {
controls.start("variant-name");
// or
controls.start({
...
});
}
return <motion.group animate={controls} /> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wonder if there is a way to animate the value and then use it in R3F, like this example from their docs.
Or something like
useAnimate
, but for R3F componentBeta Was this translation helpful? Give feedback.
All reactions