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



ශ්‍රේණිගත කිරීම්වල සාමාන්යය: Useful (1)
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.

ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -