Skip to content

A light & tiny scroll script with animation effect and no dependancy

License

Notifications You must be signed in to change notification settings

yangyuji/animation-scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

animation-scroll

A light & tiny scroll script with animation effect and no dependancy

we can use the window.scrollTo like this:

  window.scrollTo({
    top: 1000,
    behavior: 'smooth', // smooth、instant、auto
  });

but it's not enough, may be you want to animation like easeInOut etc.

this script use like this:

  animationScroll(document.getElementById('floor6'), 400, function (el) {
    console.log(el);
  });

preview

About

A light & tiny scroll script with animation effect and no dependancy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published