Jump to content
Search Community

CBJ Digital

Members
  • Posts

    2
  • Joined

  • Last visited

CBJ Digital's Achievements

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Thanks for the replies. Actually, I've realised I just want one round of wiggling when i hover over and then if the mouse moves off and back on then it would do a second wiggle. Is it not possible with the snippet I posted? It sort of works but the element ends up at an odd angle when i mouseout?
  2. 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 } ) })
×
×
  • Create New...