Smooth scrolling in essential

Re: Smooth scrolling in essential

از Gareth J Barnard در
Number of replies: 4
عکس Core developers عکس Particularly helpful Moodlers عکس Plugin developers

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

In reply to Gareth J Barnard

Re: Smooth scrolling in essential

از 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



In reply to Alessandro Nisticò

Re: Smooth scrolling in essential

از 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

از 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.