Skip to content

Commit 55e8c7e

Browse files
Merge pull request htmlacademy#46 from htmlacademy/feature/smooth
Чинит и анимирует скролл
2 parents f21f20f + afc18c9 commit 55e8c7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

css/style.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
html {
22
font-size: 16px;
3+
scroll-behavior: smooth;
34
}
45

56
body {
@@ -48,6 +49,7 @@ h2 {
4849

4950
h3 {
5051
font-size: 1.75rem;
52+
scroll-margin-top: 60px;
5153
}
5254

5355
code,

0 commit comments

Comments
 (0)