Sha256: 17451462e6ae2800e8829390e2561f844cc514ab33877ff49cce0fccb1ef2bec
Contents?: true
Size: 563 Bytes
Versions: 1
Compression:
Stored size: 563 Bytes
Contents
$(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); }); } });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jinda_bsb-0.0.1 | lib/generators/jinda_bsb/templates/app/assets/jinda_assets/js/pages/ui/animations.js |