1.0.1 • Published 2 years ago
scroll-view-smooth v1.0.1
使用说明
安装
npm install scroll-view-smooth --save
使用
import { smoothScroll } from "scroll-view-smooth"
smoothScroll(from,to,duration)
- from是开始的dom元素节点
- to 是结束的dom元素节点
- duration是过渡时间
npm install scroll-view-smooth --save
import { smoothScroll } from "scroll-view-smooth"
smoothScroll(from,to,duration)