mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-26 05:35:51 +10:00
fix: distracting and time wasting after importing smoothing scroll
Lervarage 'speedAsDuration: true' to ensure each transition only takes 400ms (Extracted from vuejs.org https://github.com/vuejs/vuejs.org/blob/master/themes/vue/source/js/common.js#L367)
This commit is contained in:
@@ -6,7 +6,8 @@ export default {
|
||||
this.$vuepress.$set('contentMounted', true)
|
||||
|
||||
this.$smoothScroll = new SmoothScroll('a[href*="#"]', {
|
||||
speed: 1000,
|
||||
speed: 400,
|
||||
speedAsDuration: true,
|
||||
easing: 'easeInOutCubic'
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user