scroll-view-smooth
v1.0.1
Published
This is a library of scrolling views
Downloads
3
Readme
使用说明
安装
npm install scroll-view-smooth --save
使用
import { smoothScroll } from "scroll-view-smooth"
smoothScroll(from,to,duration)
- from是开始的dom元素节点
- to 是结束的dom元素节点
- duration是过渡时间