Streaming live at 10am (PST)

What is wrong with on scroll functions?


#1

Hello. I try to call js function on scroll effect.

I found this topic: http://forum.webflow.com/t/call-javascript-as-scroll-action/17109

But both variants don't work at my site: click here to see

I tried to use a lot of plugins, but all of them don't work well. It seems that Webflow's js code blocks them.

So i need to call this js code $svg.drawsvg('animate'); when it scrolled to one of the div. The last way i tried: to include Waypoints library (http://imakewebthings.com/waypoints/) and call it

var waypoint = new Waypoint({
element: document.getElementById('#newnew'),
handler: function() {
$svg.drawsvg('animate');
}
})

And it doesn't work again. What's wrong with me?(


#2

Webflow team,
maybe you could just tell what's method used in Webflow on scroll interactions? What code should i paste to use webflow sourses to call js functions on scroll? It should help a lot...


#3