Using Greensock and React Hooks to create animation.
![Play Button](https://dev.to/assets/playbutt-5e444a2eae28832efea0dec3342ccf28a228b326c47f46700d771801f75d6b88.png)
![Pause Button](https://dev.to/assets/pausebutt-bba7cb5f432cfb16510e78835378fa22f45fa6ae52a624f7c9794fefa765c384.png)
For further actions, you may consider blocking this person and/or reporting abuse
Using Greensock and React Hooks to create animation.
For further actions, you may consider blocking this person and/or reporting abuse
Jaeyoun Nam -
Jaeyoun Nam -
Michael Anazodo -
Dharmendra Kumar -
Top comments (4)
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:
dev.to/billyjacoby/greensock-anima...
Many early birds have already started using this custom hooks library
in their ReactJs/NextJs project.
Have you started using it?
scriptkavi/hooks
PS: Don't be a late bloomer :P