Skip to content

Adjust the opacity of an item as it scrolls off the page

Notifications You must be signed in to change notification settings

jakemercurio/fade-on-scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

jquery-fade-on-scroll

Adjust the opacity of an item as it scrolls off the top of the page. The element will reach 0% opacity just before it scrolls out of view, and the opacity will reach 100% again once the entire element is visible again.

Usage

Add the class fade-on-scroll to any html element that you'd like to fade as it scrolls out of view.

<div class="fade-on-scroll">
  <h1>Text that will fade as it scrolls of the page</h1>
</div>

About

Adjust the opacity of an item as it scrolls off the page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published