rough-stuff / rough

Create graphics with a hand-drawn, sketchy, appearance
http://roughjs.com
MIT License
19.88k stars 615 forks source link

Compatibility roughs.js - gsap for animation #207

Open jbbarre opened 2 years ago

jbbarre commented 2 years ago

Hello,

I'm working on a project for science communication about Antarctica. I found rough.js really perfect for the different drawings (https://observablehq.com/@jbaba/antarctica-elevation). These drawings will be part of a scrollytelling where animations are importants to support the story. I plan to use gsap for that purpose. Unfortunately , I discovered that rough.js and gsap are not compatible. Is there an other way to deal with animation and rough.js ? Could compatibility be on the whish list?

ShahriarKh commented 1 year ago

Sounds interesting! I checked the gsap forum link you mentioned above, and the idea of having squiggly animation is cool. By the way, have you tried https://github.com/rough-stuff/rough/wiki#preservevertices? (I'm not sure if you are looking for this kind of animation or not. Just suggesting)