Skip to content

mogusbi/jquery.trackedOpacity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Tracked Opacity plugin

Fade an element as you scroll down a page

Getting started

NPM

Install package with NPM and add it to your dependencies: npm install @mogusbi/jquery.trackedopacity --save

Introducing it to your page

Include jQuery and the plugin to your page. Select the element you wish to apply the fade and call the trackedOpacity method.

<!doctype html>
<html>
  <head>
    ...
  </head>
  <body>
    <div class="opacity"></div>

    <script src="jquery.js"></script>
    <script src="jquery.trackedopacity.js"></script>
    <script>
      $('.opacity').trackedOpacity();
    </script>
  </body>
</html>

License

Copyright © Mo Gusbi. Licensed under the MIT license.

About

Fade an element as you scroll down a page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published