This commit is contained in:
4
composables/scrollToElement.js
Normal file
4
composables/scrollToElement.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export default function (hash) {
|
||||
const element = document.getElementById(hash)
|
||||
element.scrollIntoView({ behavior: 'smooth' })
|
||||
}
|
Reference in New Issue
Block a user