Yuliang-Lee / vue2-smooth-scroll

:surfer:Simple vue smooth scroll
MIT License
121 stars 18 forks source link

How to use programmatically within a component? #36

Closed iwasherefirst2 closed 3 years ago

iwasherefirst2 commented 3 years ago

How can I use this in a component without registering it in Vue Vue.use(VueSmoothScroll, { duration: 400, updateHistory: false, })

?

nemesisKO commented 3 years ago

any answers?

Yuliang-Lee commented 3 years ago

It can't, it is a vue plugin the reason why can't register to vue?

Yuliang-Lee commented 3 years ago

may be this scroll-behavio css property will help you