Current state
This commit is contained in:
19
public/legacy/assets/js/animations.js
Normal file
19
public/legacy/assets/js/animations.js
Normal file
@@ -0,0 +1,19 @@
|
||||
$(function(){
|
||||
|
||||
$('.js_triggerAnimation').click(function () {
|
||||
var anim = $('.js_animations').val();
|
||||
testAnim(anim);
|
||||
});
|
||||
|
||||
$('.js_animations').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