Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @vuepress-reco/vuepress-plugin-back-to-top with all npm packages installed. Try it out:

var vuepressPluginBackToTop = require("@vuepress-reco/vuepress-plugin-back-to-top")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@vuepress-reco/vuepress-plugin-back-to-top v1.4.0

Back-to-top plugin for vuepress-theme-reco or other vuepress theme

@vuepress-reco/vuepress-plugin-back-to-top

demo.png

Details

Back-to-top plugin for vuepress-theme-reco or other vuepress theme.

使用位置
plugin name@vuepress-reco/vuepress-plugin-back-to-top
component nameBackToTop(自动出现在页面中,无需添加额外代码)

Options

以下为插件注入时的参数。

Attributes

参数说明类型默认值可选值
icon按钮中间的图标名字stringreco-up主题内置的其他图标
visibilityHeight按钮出现时的最小滚动高度number400-
customStyle自定义按钮的样式Object{right:'1rem',bottom: '6rem',width: '2.5rem',height: '2.5rem','border-radius': '.25rem','line-height': '2.5rem',backgroundColor: 'rgba(231, 234, 241,.5)'}-
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free