bitworking / react-gsap

React components for GSAP
https://bitworking.github.io/react-gsap/
Other
583 stars 34 forks source link

Can you upgrade document #71

Open toppyc4 opened 2 years ago

toppyc4 commented 2 years ago

This is quite a requirement instead of an issue. I really grateful for the work you have done, it make things much easier. However, I try to read you document as a beginner and find I really hard to implement. Your editable examples are cool but it's not even a react component. At least use CodeSandbox (or something similar) to let us see the whole code, how to implement it, how to import things, how things are connect, etc. It will be really helpful. P.S. React-Spring have a really good document, if you are looking for an example. Thankyou

bitworking commented 2 years ago

Hey, you are right, documentation could be better. I'll try to find some more time for this project soon. In the meantime you can also look at the sourcecode. In the playground you'll find some examples and the documentation are just mdx files. So if you look at the raw files you'll see the imports: https://github.com/bitworking/react-gsap/tree/master/packages/docz/src/components

bitworking commented 2 years ago

On stackblitz there are some tests, too: https://stackblitz.com/@bitworking/collections/react-gsap

But I'm not 100% sure if they all work.