Smooth Scrolling is a technique which reduces the sudden jumps in display while scrolling. The content will appear to seamlessly flow in and out of the screen as you scroll. Many browsers ship with it, but it can also be implemented by websites.
Questions tagged [smooth-scrolling]
967 questions
86
votes
12 answers
What is the best way to do smooth scrolling in Vim?
The main scrolling commands in Vim are:
Ctrl-B and Ctrl-F, as well as PageUp and PageDown scroll by full page
Ctrl-U and Ctrl-D scroll half a page by default
Ctrl-Y and Ctrl-E scroll one line
I lose visual context every time for the former…

Andrew Wagner
- 22,677
- 21
- 86
- 100
70
votes
14 answers
Android: How to detect when a scroll has ended
I am using the onScroll method of GestureDetector.SimpleOnGestureListener to scroll a large bitmap on a canvas. When the scroll has ended I want to redraw the bitmap in case the user wants to scroll further ... off the edge of the bitmap, but I…

prepbgg
- 3,564
- 10
- 39
- 51
67
votes
8 answers
How to add smooth scrolling to Bootstrap's scroll spy function
I've been trying to add a smooth scrolling function to my site for a while now but can't seem to get it to work.
Here is my HTML code relating to my navigation:
58
votes
18 answers
(Smooth)ScrollToPosition doesn't work properly with RecyclerView
I'm using basic RecyclerView with GridLayoutManager. I observed that nor smoothScrollToPosition nor scrollToPosition works properly.
a) when using smoothScrollToPosition I often receive error from RecyclerView
"RecyclerView﹕ Passed over target…

petrushka1986
- 1,485
- 2
- 11
- 17
57
votes
9 answers
android: smoothScrollToPosition() not working correctly
I'm trying to smoothly scroll to last element of a list after adding an element to the arrayadapter associated with the listview.
The problem is that it just scrolls to a random position
arrayadapter.add(item);
//DOES NOT WORK…

user1515520
- 624
- 1
- 6
- 10
51
votes
7 answers
jQuery scroll to ID from different page
I was trying to use jQuery's page scroll inside some pages and could successfully make a smooth page scroll. The only problem I have now is when attempting to do that from different page. What I mean by that is if I click on a link in a page, it…

Digital site
- 4,431
- 12
- 48
- 72
46
votes
9 answers
JavaScript - window.scroll({ behavior: 'smooth' }) not working in Safari
As the title says, it works perfectly fine on Chrome. But in Safari, it just sets the page to the desired top and and left position. Is this the expected behaviour? Is there a way to make it work nicely?

Sorakthun Ly
- 732
- 2
- 8
- 15
43
votes
5 answers
jQuery - Scroll element to the middle of the screen instead of to the top with an anchor link
I'm building a one-page site with a fixed-positioned navigation bar which scrolls smoothly to the different section elements through anchor links. The default behaviour for scrolling to an element is to align it to the top of the browser window.…

Nils Kaspersson
- 8,816
- 3
- 29
- 30
38
votes
4 answers
Reduce speed of smooth scroll in scroll view
I have a scroll View. I performed smooth-scroll.using smoothScrollBy().It all works fine, but I want to change the duration of the smooth-scroll. Smooth-scroll happens very fast and user is not understanding what happened.Please help me reduce…

ShineDown
- 1,881
- 3
- 21
- 29
35
votes
10 answers
How to make RecyclerView scroll smoothly?
This is more like a generic question, but after lot of search and try I am not able to understand why this is so difficult to achieve. This is the closest answer I can find but still unable to implement.
To be specific I am using RecyclerView with…

rockfight
- 1,916
- 2
- 20
- 31
31
votes
6 answers
Enable smooth scrolling for my website in all browsers
I'm developing a parallax scrolling website using the Stellar and Skrollr libraries. The website behaves perfectly in Firefox because of Firefox's smooth scrolling feature, but in Chrome, scrolling with the mouse wheel is jerky, and the parallax…

Ian
- 5,704
- 6
- 40
- 72
30
votes
7 answers
Android: HorizontalScrollView smoothScroll animation time
I have a situation in that I am using a horizontal scroll view with images and using buttons to smooth scroll to the different image locations. Now it works okay I was just wondering if anyone knew of anyway to slow down the smooth scroll method,…

somin
- 323
- 1
- 4
- 12
30
votes
9 answers
Smooth scroll angular2
I am having trouble getting a smooth scroll service to work in angular 2. Are there any services for smooth scrolling, or plain anchor scrolling, that might work until the angular 2 team gets the $anchorScroll angular2 equivalent working?
So far I…

Alex J
- 3,085
- 3
- 19
- 29
30
votes
4 answers
RecyclerView does not scroll as expected
I have a project where I use a horizontal recycler view and I want to center one element. My implementation works, but not in every case check this GIF here:
As you may note it scrolls correctly if I come from the left. If I come from the right it…

rekire
- 47,260
- 30
- 167
- 264
30
votes
5 answers
jquery vertical mousewheel smooth scrolling
I'm making a parallax website and I would like to make the page scroll smoother with the mousewheel for a better user experience.
The best example I could get was this website: http://www.milwaukeepolicenews.com/#menu=home-page
It would be great if…

gigi melcul
- 301
- 1
- 3
- 5