Hey,
I have an element that i'd like to wiggle when you hover over it. Basically it should wiggle continuously whilst hovering and then you mouse out it should complete the wiggle and return to it's default state.
I have the below which partially works but not fully. Any help?
Thanks,
Neil
CustomWiggle.create("myWiggle", { wiggles: 6 })
document.querySelector(".site-title").addEventListener('mouseover', _ => {
gsap.to(
"header.layout .site-title",
{ duration: 2, rotation: 3, ease: "myWiggle", yoyo: true }
)
})