MIF_E31211459/public/admin/assets/js/animation/animate-custom.js

23 lines
664 B
JavaScript

"use strict";
function testAnim(x) {
$('#animation-box').removeClass().addClass(x + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
$(this).removeClass();
});
};
var animate_custom = {
init: function() {
$('.js-triggeraNimation').click(function(e){
e.preventDefault();
var anim = $('.js-animations').val();
testAnim(anim);
});
$('.js-animations').change(function(){
var anim = $(this).val();
testAnim(anim);
});
}
};
(function($) {
"use strict";
animate_custom.init()
})(jQuery);