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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -