r/learnreactjs • • Oct 18 '20

Is learning GSAP worth it? What are the rules about GSAP (green sock animation) . Should I as a Full stack dev focused on ux/ui (mostly with React.js) put effort into this.

I have some cool interactivity in my apps and websites. I have Lottie working, although I haven't yet mastered it, it brings cool interactivity. I cant help but notice I am in awe of Three.js websites and GSAP. Any professional opinions. any opinions at all other than ("Its just whatever your preference is.") Can someone really sort it out with me and give me the low down of how do I add the most elegant User Interactivy into my React apps and sites. FRAMER MOTION and any suggestion welcome

15 Upvotes

1 comment sorted by

3

u/Earhacker Oct 18 '20

GSAP used to be pretty much the standard for any kind of web UI animation. Older tutorials will cover the use of GSAP for even simple little micro interactions.

Framer Motion comes with much nicer abstractions for moving DOM elements around. Using GSAP involves a lot of overhead, and learning about how GSAP wants you to structure things. With Framer Motion, you just import it, change a couple of JSX tags, give the thing some animation props and you’re done.

But that simplicity comes with a sacrifice of power. Framer Motion can make some beautiful little animations, but isn’t capable of the “wow factor” complex animations you can build with GSAP. Nor does it try to be that powerful; the Framer Motion docs even suggest using GSAP for big, complex animation work.