@vuepress-denaro/vuepress-plugin-smooth-scroll
v1.3.1
Published
VuePress plugin for smooth scrolling.用于平滑滚动的 VuePress 插件.
Downloads
18
Maintainers
Readme
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()],
})