template.js.base.effect-slide.min.js Maven / Gradle / Ivy
'use strict';(function(c){"function"===typeof define&&define.amd?define(["jquery","../version","../effect"],c):c(jQuery)})(function(c){return c.effects.define("slide","show",function(f,l){var h,g,b=c(this),k={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},m=f.mode,d=f.direction||"left",e="up"===d||"down"===d?"top":"left",n="up"===d||"left"===d,p=f.distance||b["top"===e?"outerHeight":"outerWidth"](!0),a={};c.effects.createPlaceholder(b);h=b.cssClip();g=b.position()[e];
a[e]=(n?-1:1)*p+g;a.clip=b.cssClip();a.clip[k[d][1]]=a.clip[k[d][0]];"show"===m&&(b.cssClip(a.clip),b.css(e,a[e]),a.clip=h,a[e]=g);b.animate(a,{queue:!1,duration:f.duration,easing:f.easing,complete:l})})});
© 2015 - 2024 Weber Informatics LLC | Privacy Policy