cleanup transition and transform scrolling code