Improved performance by throttling the scroll event and adding transitions