Skip to content

将某个元素滚动到合适可视区域,支持内部多滚动条

Notifications You must be signed in to change notification settings

diqye/pure-scrollto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pure-scrollto

Scroll to the specified element

install && import

npm i pure-scrollto --save
import scrollTo from 'pure-scrollto'

or

let scrollTo = rquire('pure-scrollto')

usage

let element  = document.querySelect('#xx')
scrollTo(element)

features

demo

About

将某个元素滚动到合适可视区域,支持内部多滚动条

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published