Animated scrolling without any dependency on libraries