Skip to content

airammateos/smooth_background_scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smooth Background Scroll

Smooth background image transition on scroll.

version last commit PRs Welcome watchers stars

Github Twitter Follow Twitter URL

Third party

We use third party libraries and images:

Usage

Add script right before closing </body> tag and initialize SmoothScroll:

  <script src="https://polyfill.io/v3/polyfill.min.js?features=Object.assign%2CArray.from"></script>
  <script src='smoothScroll.js'></script>
  <script>
    SmoothScroll.init([
      'img/164604.jpg',
      'img/164621.jpg',
      'img/164622.jpg',
      'img/164624.jpg',
      'img/164642.jpg',
      'img/164651.jpg'
    ]);
  </script>

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT and those of the used libraries and images.

About

Smooth background image transition on scroll.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published