Using Greensock and React Hooks to create animation.
0 seconds of 3 minutes, 41 secondsVolume 90%
Press shift question mark to access a list of keyboard shortcuts
Keyboard Shortcuts
Shortcuts Open/Close/ or ?
Play/PauseSPACE
Increase Volume↑
Decrease Volume↓
Seek Forward→
Seek Backward←
Captions On/Offc
Fullscreen/Exit Fullscreenf
Mute/Unmutem
Decrease Caption Size-
Increase Caption Size+ or =
Seek %0-9
For further actions, you may consider blocking this person and/or reporting abuse
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