definicao de layout
This commit is contained in:
23
public/assets/js/animation/animate-custom.js
Normal file
23
public/assets/js/animation/animate-custom.js
Normal file
@@ -0,0 +1,23 @@
|
||||
"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);
|
||||
Reference in New Issue
Block a user