Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkgroenen committed Dec 1, 2014
1 parent 16db654 commit 80871bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ $('.dummy').viewportChecker({
classToAdd: 'visible', // Class to add to the elements when they are visible
classToRemove: 'invisible', // Class to remove before adding 'classToAdd' to the elements
offset: 100, // The offset of the elements (let them appear earlier or later)
invertBottomOffset: true, // Add the offset as a negative number to the element's bottom
repeat: false, // Add the possibility to remove the class if the elements are not visible
callbackFunction: function(elem, action){}, // Callback to do after a class was added to an element. Action will return "add" or "remove", depending if the class was added or removed
scrollHorizontal: false // Set to true if your website scrolls horizontal instead of vertical.
Expand Down

0 comments on commit 80871bb

Please sign in to comment.