1.0.2-alpha.2 • Published 3 years ago

@vuepress-denaro/vuepress-plugin-smooth-scroll v1.0.2-alpha.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vuepress-plugin-smooth-scroll

:tada: VuePress plugin for smooth scrolling.用于平滑滚动的 VuePress 插件.

Usage

  • Install
# npm
npm install @vuepress-denaro/vuepress-plugin-smooth-scroll

# yarn
yarn add @vuepress-denaro/vuepress-plugin-smooth-scroll
  • Update plugins in .vuepress/config.js or .vuepress/config.ts

js

const {
  smoothScrollPlugin,
} = require('@vuepress-denaro/vuepress-plugin-smooth-scroll')
module.exports = {
  plugins: [smoothScrollPlugin()],
}

ts

import { smoothScrollPlugin } from '@vuepress-denaro/vuepress-plugin-smooth-scroll'
import { defineUserConfig } from '@vuepress/cli'

export default defineUserConfig({
  plugins: [smoothScrollPlugin()],
})

Thanks

vuepress-plugin-smooth-scroll