first
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
$(document).ready(function(){
|
||||
$('.js--triggerAnimation').on('click',function(e){
|
||||
e.preventDefault();
|
||||
var anim = $('.js--animations').val();
|
||||
testAnim(anim);
|
||||
});
|
||||
|
||||
$('.js--animations').on('change',function(){
|
||||
var anim = $(this).val();
|
||||
testAnim(anim);
|
||||
});
|
||||
|
||||
function testAnim(x) {
|
||||
$('#animationSandbox').removeClass().addClass(x + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
|
||||
$(this).removeClass();
|
||||
});
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user