Smoother scroll transitions in firefox?
问题 I'm trying to create a parallax effect in firefox by modifying the top position of elements using the onscroll event. I throttled the onscroll event so it doesn't overload the browser and I added a transition top property in the css to make things smoother. This works pretty well in every browser, but firefox is extremely choppy for some reason. Is there any way to make this transition smoother? window.onscroll = throttle(function(){ var scrollDistance = window.pageYOffset || window.document