forked from Ponysearch/Ponysearch
[mod] UI smooth scroll added / CSS scroll-behavior
This PR improves the UX by making auto-scroll more smoother. The css is changed so all the auto-scroll will be smoother but User-scroll will not be influenced. The scroll-behavior CSS property sets the behavior for a scrolling box when scrolling is triggered by the navigation or CSSOM scrolling APIs.[1] [1] https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior
This commit is contained in:
parent
bf7af99ef2
commit
0984b00b7e
1 changed files with 2 additions and 0 deletions
|
@ -63,6 +63,8 @@ html {
|
||||||
background-color: var(--color-base-background);
|
background-color: var(--color-base-background);
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
|
scroll-behavior: smooth;
|
||||||
}
|
}
|
||||||
|
|
||||||
body,
|
body,
|
||||||
|
|
Loading…
Reference in a new issue