Smooth scroll to anchor without a library

Custom function using scrollIntoView with smooth behavior
This commit is contained in:
2020-04-07 18:47:02 +02:00
parent 1a05c35fc8
commit c5836dcbc1
4 changed files with 16 additions and 13 deletions

6
pnpm-lock.yaml generated
View File

@@ -8,7 +8,6 @@ dependencies:
scroll-out: 2.2.8
sirv: 0.4.2
swipe-listener: 1.1.0
zenscroll: 4.0.2
devDependencies:
'@babel/core': 7.9.0
'@babel/plugin-syntax-dynamic-import': 7.8.3_@babel+core@7.9.0
@@ -4850,10 +4849,6 @@ packages:
dev: true
resolution:
integrity: sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=
/zenscroll/4.0.2:
dev: false
resolution:
integrity: sha1-6NV3TRwHOKR7z6hynzcS4t7d6yU=
specifiers:
'@babel/core': ^7.9.0
'@babel/plugin-syntax-dynamic-import': ^7.8.3
@@ -4896,4 +4891,3 @@ specifiers:
svelte: ^3.20.1
svelte-preprocess: ^3.7.1
swipe-listener: ^1.1.0
zenscroll: ^4.0.2