CSS scroll-behavior property

CSS scroll-behavior represents the scrolling behavior within a scrolling box due to navigation. The scrolling that a user performs is not affected by this property.

Syntax

: auto | smooth

autoDefault

It does not represent smooth behavior.

scroll-behavior: auto;

smooth

It smoothens the scrolling.

scroll-behavior: smooth;

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
It is representing scroll-behavior.
×

Ctrl+D