portfolio/composables/scrollToElement.js
Xeovalyte e1ed3d53db
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
added a leftbar
2023-02-12 10:59:55 +01:00

5 lines
132 B
JavaScript

export default function (hash) {
const element = document.getElementById(hash)
element.scrollIntoView({ behavior: 'smooth' })
}