How can I resolve an animation glitch that occurs when quickly hovering over and then off an element?
You can view the live version of the website at -
Whenever I rapidly hover on and off the circle, it starts acting buggy. It happens consistently, so I'm really hoping there's a solution available.
<div class="hover-circle" @mouseover="hoverCircle" @mouseout="leaveCircle">
<div class="circle"></div>
<span>Enter</span>
</div>
hoverCircle(e) {
gsap.to(".hover-circle .circle", {
duration: 1,
scale: 1.3,
ease: "power4.out"
});
gsap.to(`.home-${this.currentComponent}`, {
delay: 0.1,
duration: 1,
scale: 1.05,
ease: "power4.out"
});
},
leaveCircle() {
gsap.to(".hover-circle .circle", {
duration: 0.5,
scale: 1,
ease: "power4.inOut"
});
gsap.to(`.home-${this.currentComponent}`, {
duration: 0.5,
scale: 1,
ease: "power4.inOut"
});
},