You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
622 B
19 lines
622 B
"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();
|
|
});
|
|
};
|
|
});
|