Projet

Général

Profil

Paste
Télécharger (1,04 ko) Statistiques
| Branche: | Révision:

root / drupal7 / misc / ui / jquery.effects.clip.min.js @ 76597ebf

1

    
2
/*
3
 * jQuery UI Effects Clip 1.8.7
4
 *
5
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
6
 * Dual licensed under the MIT or GPL Version 2 licenses.
7
 * http://jquery.org/license
8
 *
9
 * http://docs.jquery.com/UI/Effects/Clip
10
 *
11
 * Depends:
12
 *        jquery.effects.core.js
13
 */
14
(function(b){b.effects.clip=function(e){return this.queue(function(){var a=b(this),i=["position","top","left","height","width"],f=b.effects.setMode(a,e.options.mode||"hide"),c=e.options.direction||"vertical";b.effects.save(a,i);a.show();var d=b.effects.createWrapper(a).css({overflow:"hidden"});d=a[0].tagName=="IMG"?d:a;var g={size:c=="vertical"?"height":"width",position:c=="vertical"?"top":"left"};c=c=="vertical"?d.height():d.width();if(f=="show"){d.css(g.size,0);d.css(g.position,c/2)}var h={};h[g.size]=
15
f=="show"?c:0;h[g.position]=f=="show"?0:c/2;d.animate(h,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){f=="hide"&&a.hide();b.effects.restore(a,i);b.effects.removeWrapper(a);e.callback&&e.callback.apply(a[0],arguments);a.dequeue()}})})}})(jQuery);