Skip to content

snail-boy/roll-page

Repository files navigation

roll-page

Animate.css GitHub release CDNJS Build Status devDependencies Status chat [npm version]

A Vue.js project

rollPage 解决了长文本信息页滚动到当前位置页面显示动画的插件

delayDis 你可以设置要显示元素距离页面可视区域底部多远执行动画

你可以使用内置样式但必须和示例dom结构一样

ro-opacity ro-scale ro-from-right ro-from-left

你可以结合animate.css使用 做出酷炫的出场效果

demo

npm install roll-page --S

main.js 里写 import rollPage from 'roll-page'; Vue.use(rollPage)

组件里引用 tagv3.0

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

About

页面滚动到某个位置执行动画得vue插件

Resources

Stars

Watchers

Forks

Packages

No packages published