template.js.base.effect-bounce.min.js Maven / Gradle / Ivy
'use strict';(function(f){"function"===typeof define&&define.amd?define(["jquery","../version","../effect"],f):f(jQuery)})(function(f){return f.effects.define("bounce",function(h,r){var b,c,d=f(this),a=h.mode,k="hide"===a;c="show"===a;var e=h.direction||"up",a=h.distance,n=h.times||5,p=2*n+(c||k?1:0),l=h.duration/p,m=h.easing,g="up"===e||"down"===e?"top":"left",e="up"===e||"left"===e,q=0,s=d.queue().length;f.effects.createPlaceholder(d);b=d.css(g);a||(a=d["top"===g?"outerHeight":"outerWidth"]()/3);
c&&(c={opacity:1},c[g]=b,d.css("opacity",0).css(g,e?2*-a:2*a).animate(c,l,m));k&&(a/=Math.pow(2,n-1));c={};for(c[g]=b;q
© 2015 - 2024 Weber Informatics LLC | Privacy Policy