-
Notifications
You must be signed in to change notification settings - Fork 14
Description
ok i have this code
what i want to achieve is
when the cursor enters the div change pic and size too 200px
and when it hovers on the title i want it to change the size too 300px
it does it with no problem but once i enter the title area and becomes 300px
and when i leave the area it goes back to 20px
and also the colors of the img are inverted
i have to leave the div and re enter for it to have the normal colors
<motion.div data-cursor-background-image="https://media2.giphy.com/media/jncVQOzEP11H5UiHbI/giphy.gif?cid=ecf05e47s906rmm4g91lxsrd6hvlmi3srte6pll4asrg709m&rid=giphy.gif&ct=g" data-cursor-size="200px" className="h-full w-full flex flex-col place-items-center justify-center" > <motion.span initial={{ opacity: 0, y: 70 }} whileInView={{ opacity: 1, y: 0, transition: { duration: 0.5, type: "spring", delay: 0.2 }, }} viewport={{ once: true }} data-cursor-size="300px" > App </motion.span> </motion.div>