Last active
October 10, 2019 07:37
-
-
Save agragregra/2116890981113505adc2 to your computer and use it in GitHub Desktop.
Animate CSS jQuery once animate
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
//Animate CSS + WayPoints javaScript Plugin | |
//Example: $(".element").animated("zoomInUp"); | |
//Author URL: http://webdesign-master.ru | |
(function($) { | |
$.fn.animated = function(inEffect) { | |
$(this).css("opacity", "0").addClass("animated").waypoint(function(dir) { | |
if (dir === "down") { | |
$(this).addClass(inEffect).css("opacity", "1"); | |
}; | |
}, { | |
offset: "90%" | |
}); | |
}; | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment