1.3.1 • Published 6 months ago

@vuepress-denaro/vuepress-plugin-smooth-scroll v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months 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