diff --git a/pages/about.vue b/pages/about.vue index 3564647..6c22adc 100644 --- a/pages/about.vue +++ b/pages/about.vue @@ -12,6 +12,16 @@ onMounted(() => { sProgress.value = scrollTop / clientHeight; }); }); + +function scrollIntoView(id: string) { + const element = document.getElementById(id); + if (element) { + element.scrollIntoView({ + behavior: "smooth", + block: "start", + }); + } +}