BSBMaterial added

This commit is contained in:
Yan
2017-09-20 19:25:19 +06:30
parent 899eb61568
commit 91ad6e3ef0
3366 changed files with 399794 additions and 280 deletions

View File

@@ -0,0 +1,16 @@
$(function () {
$('.js-animations').bind('change', function () {
var animation = $(this).val();
$('.js-animating-object').animateCss(animation);
});
});
//Copied from https://github.com/daneden/animate.css
$.fn.extend({
animateCss: function (animationName) {
var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
$(this).addClass('animated ' + animationName).one(animationEnd, function() {
$(this).removeClass('animated ' + animationName);
});
}
});