B
B
ByRon2016-08-01 17:47:37
JavaScript
ByRon, 2016-08-01 17:47:37

Line fill effect on scroll?

It is necessary to make an animation as in the example, but my eye starts to twitch when I see how everything works there is scary ...
Are there any options for how this can be done easier? Yes, and adaptive ... although in the mobile version I think you can just turn it off.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GreatRash, 2016-08-01
@ByRon

www.w3schools.com/howto/howto_js_scrolldrawing.asp
scrollmagic.io/examples/advanced/svg_drawing.html
codepen.io/paintbycode/pen/JDbcF

D
Dark Hole, 2016-08-01
@abyrkov

It is very easy!
We hang it on window.onscrolla function in which we calculate the offset of an invisible element, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question