Jump to content
Search Community

register plugin Custom Wiggle

james182 test
Moderator Tag

Go to solution Solved by mikel,

Recommended Posts

Trying to use the CustomWiggle plugin with gsap but it keeps asking to:

"Please gsap.registerPlugin(CustomEase, CustomWiggle)"

I have added the gsap.registerPlugin('CustomWiggle'); at the beginning of my code, but no luck.

My code is below:

CustomWiggle.create("iconWiggle", { wiggles: 6, type: "easeInOut"});
gsap.to(btnIcon, { duration: 0.5, rotation: 30, ease: "iconWiggle" } );

The aim is on hovering over the button the icon wiggles.

See the Pen abmYRxV by james182 (@james182) on CodePen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...