Created
October 22, 2017 16:06
-
-
Save HarmlessEvil/3b91f3f33976da2b664e2917f0794f99 to your computer and use it in GitHub Desktop.
Animation on waypoint
This file contains hidden or 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
function attach_animation(selector, animation) { | |
$(selector).waypoint(function() { | |
var element = $(this.element); | |
element.css('visibility', 'visible'); | |
element.addClass(animation + ' animated'); | |
}, {offset: "80%"}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment