Hareon Active member Jun 18, 2024 #1 I am thinking if add smooth scrolling is a good idea and I want to test, but what can I do to add and ajust this? Something in extra.less?
I am thinking if add smooth scrolling is a good idea and I want to test, but what can I do to add and ajust this? Something in extra.less?
O Old Nick Well-known member Jun 18, 2024 #2 Hareon said: Something in extra.less? Click to expand... Maybe… you can try. CSS: scroll-behavior: smooth; Upvote 0 Downvote
Hareon said: Something in extra.less? Click to expand... Maybe… you can try. CSS: scroll-behavior: smooth;
Hareon Active member Jun 18, 2024 #3 Old Nick said: Maybe… you can try. CSS: scroll-behavior: smooth; Click to expand... I will put this in extra.less? Nothing happened. Upvote 0 Downvote
Old Nick said: Maybe… you can try. CSS: scroll-behavior: smooth; Click to expand... I will put this in extra.less? Nothing happened.
CedricV Well-known member Jun 18, 2024 #4 Try: :root { scroll-behavior: smooth; } Last edited: Jun 18, 2024 Upvote 1 Downvote
CedricV Well-known member Jun 19, 2024 #6 :html { scroll-behavior: smooth; } Not sure if this will work, might need to try with a JS script. Upvote 0 Downvote
P Paul B XenForo moderator Staff member Jun 19, 2024 #7 Just html { scroll-behavior: smooth; } should do it. Upvote 0 Downvote
Mr Lucky Well-known member Jun 19, 2024 #8 Hareon said: I will put this in extra.less? Nothing happened. Click to expand... Always double check you are looking at the same style as the extra .less template you edited. I cannot count the number of times this caught me out. Upvote 0 Downvote
Hareon said: I will put this in extra.less? Nothing happened. Click to expand... Always double check you are looking at the same style as the extra .less template you edited. I cannot count the number of times this caught me out.
Hareon Active member Jun 20, 2024 #9 Hmmm not working. Mr Lucky said: Always double check you are looking at the same style as the extra .less template you edited. I cannot count the number of times this caught me out. Click to expand... I am using the corretc theme. I don't know if I am doing it wrong. All codes posted in extra.less are OK. But this smooth is not working here. Upvote 0 Downvote
Hmmm not working. Mr Lucky said: Always double check you are looking at the same style as the extra .less template you edited. I cannot count the number of times this caught me out. Click to expand... I am using the corretc theme. I don't know if I am doing it wrong. All codes posted in extra.less are OK. But this smooth is not working here.
O Old Nick Well-known member Jun 20, 2024 #10 Note that scrolls performed by the user, are not affected by this property. This affects, for example, scrolling between 2 sections of the same page via a link, like <a href="#top">Top</a> Upvote 0 Downvote
Note that scrolls performed by the user, are not affected by this property. This affects, for example, scrolling between 2 sections of the same page via a link, like <a href="#top">Top</a>