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...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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...