I'm giving some elements on my page a slower scroll effect. This looks great for elements that appear on top of the page, but for the elements down the page, not so much. I'm trying to figure out a way to have the custom scroll speed trigger once a certain element has entered the viewport. Right now I have elements from the bottom of the page completely out of place due to the custom scroll being triggered as soon as the page loads.
Here's the code for my scroll speed:
$('element_name').css({
'transform' : 'translate(0px, '+ wScroll /2 +'%)'
});