React Hooks & Greensock

twitter logo github logo ・1 min read

Using Greensock and React Hooks to create animation.

twitter logo DISCUSS (3)
markdown guide

Hey man,

I've been struggling with trying to figure out how to trigger methods on GSAP functions using react hooks and effects.

Any chance you have experience with this?

For example:

When a user clicks a button a form slides into right, when they click the button again the form slides back out of sight (dependent on state).

I can do this with classes, but can't figure out how to do it in a functional component


hey sorry Billy I got no notification for this comment? You all good now?


If anyone else is looking for how to accomplish this, I posted a quick tutorial on how I figured it out:

Classic DEV Post from Nov 17 '18

Why is the software industry so competitive?

It seems like software developers are often pitted against one another in some ...

Paul Ryan profile image
Developer hailing from Ireland, love all things JS and also starting to fall in love with SVGs! I also make Youtube videos at: