Smooth scrolling in essential

Re: Smooth scrolling in essential

by Gareth J Barnard -
Number of replies: 4
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Who ever said that what appears to be simple actually is!

In reply to Gareth J Barnard

Re: Smooth scrolling in essential

by Alessandro Nisticò -

I found a simple solution indeed,. However, it works only in the latest Firefox and Chrome.

Just put this in your custom CSS:

body { ....; scroll-behavior: smooth; .... }

This enables the built-in smooth scrolling capability in the browsers mentioned above.

The effect is very pleasant.

Regards

Alessandro



Average of ratings: Useful (1)
In reply to Alessandro Nisticò

Re: Smooth scrolling in essential

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

That's cool...I like that thanks for sharing...

Cheers

Mary

In reply to Alessandro Nisticò

Re: Smooth scrolling in essential

by Mewael Ghebreslassie -

Hi Alessandro,


I checked your site and it looks clean. My question is not related to scrolling but to how you can get rid of some of the options in the User Menu. I like how you have yours, only the log in/log out option. How did you do that? 

Attachment Log in menu.png
In reply to Mewael Ghebreslassie

Re: Smooth scrolling in essential

by Alessandro Nisticò -

Hi, I don't remember exactly, but I think I did nothing. When I am logged in I see a lot of options in the user menu (preferences, calendar, ...badges..etc).  I suppose that showing only the log in option to non logged in users is the default.