Prinzhorn / skrollr

Stand-alone parallax scrolling library for mobile (Android + iOS) and desktop. No jQuery. Just plain JavaScript (and some love).
http://prinzhorn.github.io/skrollr/
MIT License
18.53k stars 3.51k forks source link

Skrollr SVG Line Animation Running Twice #853

Closed joeqj closed 7 years ago

joeqj commented 7 years ago

Hello,

I'm trying to create a line drawing animation following the example: http://prinzhorn.github.io/skrollr/examples/path.html

I imported my own SVG successfully however the animation is incorrect. It draws a line from bottom to top and then redraws another line top to bottom over the top to create the end result. So I was wondering if it's possible to skip the first line, would I need to edit the SVG path directly? I'm exporting an outline path from Illustrator to SVG.

Here's a fiddle that displays the animation by scrolling: https://jsfiddle.net/9x5n7oy1/