Last active
January 14, 2021 22:27
-
-
Save joebailey26/04220c87afeacc2a47670a90565fc12b to your computer and use it in GitHub Desktop.
Revisions
-
Joe Bailey renamed this gist
Jan 14, 2021 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,13 @@ <style> :root:focus-within { scroll-behavior: smooth; } @media screen and (prefers-reduced-motion: reduce) { :root:focus-within { scroll-behavior: auto; } } </style> <a href="#scrolled">Scroll me</a> <div tabindex="-1" id="scrolled"> </div> -
Joe Bailey created this gist
Jan 14, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ :root:focus-within { scroll-behavior: smooth; } @media screen and (prefers-reduced-motion: reduce) { :root:focus-within { scroll-behavior: auto; } }