Example of what I'm looking for here: https://www.98point6.com/
Is there a clean javascript solution that works? I haven't been able to implement the code I've founds so far.
Example of what I'm looking for here: https://www.98point6.com/
Is there a clean javascript solution that works? I haven't been able to implement the code I've founds so far.
try this. wscroll captures the scroll event position, and we can use that divided by something passed to the css translate property to scroll something at a slower speed.
$(document).ready(function () {
$(window).scroll(function () {
var wScroll = $(this).scrollTop();
$(elementyouwanttoscrollslower).css({
'transform': 'translate(0px, '+ (wScroll/2)+'px)'
});
} }