Hi!
I found your function useful and decided to improve it.
I was a little bit surpised that all functions run by interval, and asked myself: "why not on scroll?".
So I remade it. I addition i wrote jQuery's "ready" function in vanilla. Minified file changed too.
Hope you'll find my work helpful!
Hi! I found your function useful and decided to improve it. I was a little bit surpised that all functions run by interval, and asked myself: "why not on scroll?". So I remade it. I addition i wrote jQuery's "ready" function in vanilla. Minified file changed too. Hope you'll find my work helpful!
Here you may check it (don't pay attention to rest edits): https://jsfiddle.net/jorje/xz86s7ub/1/