fregante / gsap-then

🙏 Make every GSAP Tween a promise. tl.then(doSomething) (GSAP 1 and 2)
https://npm.im/gsap-then
MIT License
29 stars 3 forks source link

SSR Rendering Solve #1

Closed jkosoy closed 6 years ago

jkosoy commented 6 years ago

Anyone that attempts to use gsap-then w/ SSR will get an error a window is not defined error, since the code is designed for client side dev. Obviously there's no expectation that GSAP would work or do anything useful on the server side, but it'd be great if this worked for universal apps.

I think this PR solves that.

fregante commented 6 years ago

Thank you for the PR! Are you sure it would work? It still looks for the global variable com. Please test it. And also remove package-lock.json