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
$('.some-els').bind('animationend webkitAnimationEnd MSAnimationEnd oAnimationEnd', function(){ | |
// Do something! | |
$(this).removeClass('animation-class'); | |
}) | |
.addClass('animation-class'); | |
// One works, too | |
$('.some-els').one('animationend webkitAnimationEnd MSAnimationEnd oAnimationEnd', function(){ | |
// Do something once! | |
console.log('this would show once'); |
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(win, $){ | |
"use strict"; | |
// Check to see if our global is available as a member of window; if it is, our namespace root exists; if not, we'll create it. | |
var foospace = win.foospace = (typeof win.foospace !== "undefined") ? win.foospace : {}; | |
(foospace.module = function(){ | |
return{ | |
_init : function(){ | |
// Etc. etc. |
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($){ | |
var rupper = /([A-Z])/g; | |
// ---------- | |
// Function: stopCssAnimation | |
// Stops an animation in its tracks! | |
$.fn.stopCssAnimation = function(){ | |
this.each(function(){ | |
// When you remove the CSS Transition properties |