All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.js.base.effect-fold.min.js Maven / Gradle / Ivy

There is a newer version: 5.0.5
Show newest version
'use strict';(function(a){"function"===typeof define&&define.amd?define(["jquery","../version","../effect"],a):a(jQuery)})(function(a){return a.effects.define("fold","hide",function(b,p){var c=a(this),g=b.mode,q="show"===g,g="hide"===g,h=b.size||15,n=/([0-9]+)%/.exec(h),e=b.horizFirst?["right","bottom"]:["bottom","right"],k=b.duration/2,l=a.effects.createPlaceholder(c),f=c.cssClip(),m={clip:a.extend({},f)},d={clip:a.extend({},f)},r=[f[e[0]],f[e[1]]],s=c.queue().length;n&&(h=parseInt(n[1],10)/100*
r[g?0:1]);m.clip[e[0]]=h;d.clip[e[0]]=h;d.clip[e[1]]=0;q&&(c.cssClip(d.clip),l&&l.css(a.effects.clipToBox(d)),d.clip=f);c.queue(function(c){l&&l.animate(a.effects.clipToBox(m),k,b.easing).animate(a.effects.clipToBox(d),k,b.easing);c()}).animate(m,k,b.easing).animate(d,k,b.easing).queue(p);a.effects.unshift(c,s,4)})});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy