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
/* the css here */ | |
@include keyframes(fadeIn) { | |
from { | |
height: 0; | |
opacity: 0; } | |
to { | |
height: auto; /* Not sure how well this will work */ | |
opacity: 1; } | |
} |
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
$('.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'); |