merri-ment/lazy-line-painter

Animation on viewport and reset?

Closed this issue · 1 comments

Is there a way I can have the animation start only when it enters the viewport? And could I have it reset so that every time someone scrolls back to it, it runs the animation again?

Thank you!

For future reference;
"Is there a way I can have the animation start only when it enters the viewport?" - this would be managed by the developer integrating this lib.

"And could I have it reset so that every time someone scrolls back to it, it runs the animation again?" - Calling paint() on your lazyline instance will replay the animtion.

Check the example folder for a comprehensive demo of functionality supported by lazylinepainter