First, yarn add react-pose
Then:
const Box = posed.div({
hoverable: true,
init: {...},
hover: {...}
}
Check out pose for more cool animations: https://popmotion.io/pose/
PS: If you find this tip difficult to understand, check out this course I prepared for you, where concepts are explained in a more digestible way. No programming experience required!
Want the complete source file? Enter your email address below:
I'll also send you new tips when available. No spam, unsubscribe any time!