Play on hover
anubra266 opened this issue · 3 comments
anubra266 commented
I can't find a prop to play my animation on hover.
mifi commented
react-lotie-player doesnt implement that feature. you need to implement yourself
anubra266 commented
react-lotie-player doesnt implement that feature. you need to implement yourself
Thanks @mifi could you point me to some guide on how to do that.
mifi commented
I think something like this:
const [playing, setPlaying] = useState(false);
return <Lottie onMouseOver={() => setPlaying(true)} play={playing} />