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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -