Created
January 29, 2019 15:14
-
-
Save csilverman/e4d1aa5aa86c36aae07eadb9783f07d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$( document ).ready(function() { | |
var discreteElements = document.getElementsByClassName('animate-this') | |
for (var i = 0; i < discreteElements.length; i++) { | |
new Waypoint({ | |
element: discreteElements[i], | |
handler: function() { | |
this.element.classList.add("animation"); | |
}, | |
offset: '50%' | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment