I need help delaying a timeout effect. Currently, the effect begins as soon as the page loads, but I want it to start when I scroll to a specific div. You can see how it currently functions here.
After some research, I came across a library called waypoint that allows triggering events based on waypoints using the code below. However, I have not had any success in implementing it. I also tried setting the display property to none and changing it once the CSS animation was triggered, but when it appeared on the page, the progress bars were already in place.
var waypoint = new Waypoint({
element: document.getElementById('waypoint'),
handler: function(direction) {
console.log('Scrolled to waypoint!')
}
})