javascript - Animate SVG waves with greensock library -
i'm trying create wave effect gsap library , svg. this example shows do. unfortunately code built on top of paper.js library.
i understand wave composed of n segments animated on every call of onframe function (called in turn requestanimationframe). first part of code (correct me if i'm wrong) generates bunch of segments composes long line (and can done in svg set of aligned path/line elements). in tweenmax found there onupdate
event that's called every frame of animation, don't understand how use animate fragments of svg.
the question simple: can code ported gsap svg instead of canvas , how?
Comments
Post a Comment