]>
git.proxmox.com Git - extjs.git/blob - extjs/packages/core/src/fx/animation/Wipe.js
4 Ext
.define('Ext.fx.animation.Wipe', {
5 extend
: 'Ext.fx.Animation',
6 alternateClassName
: 'Ext.fx.animation.WipeIn',
10 * Valid values are 'ease', 'linear', ease-in', 'ease-out', 'ease-in-out',
11 * or a cubic-bezier curve as defined by CSS.
16 * @cfg {String} direction The direction of which the slide animates
22 * @cfg {Boolean} out True if you want to make this animation wipe out, instead of slide in.
31 elBox
= el
.dom
.getBoundingClientRect(),
32 elWidth
= elBox
.width
,
33 elHeight
= elBox
.height
,
37 direction
= me
.getDirection(),
47 mask
= '-webkit-gradient(linear, left top, left bottom, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';
48 maskFromY
= elHeight
* 3 + 'px';
49 maskToY
= elHeight
+ 'px';
51 mask
= '-webkit-gradient(linear, left top, left bottom, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';
52 maskFromY
= -elHeight
* 2 + 'px';
60 mask
= '-webkit-gradient(linear, left top, left bottom, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';
61 maskFromY
= -elHeight
* 2 + 'px';
64 mask
= '-webkit-gradient(linear, left top, left bottom, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';
65 maskFromY
= elHeight
* 3 + 'px';
66 maskToY
= elHeight
+ 'px';
73 mask
= '-webkit-gradient(linear, right top, left top, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';
74 maskFromX
= -elWidth
* 2 + 'px';
77 mask
= '-webkit-gradient(linear, right top, left top, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';
78 maskToX
= -elWidth
* 2 + 'px';
85 mask
= '-webkit-gradient(linear, right top, left top, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';
86 maskToX
= -elWidth
* 2 + 'px';
88 mask
= '-webkit-gradient(linear, right top, left top, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';
89 maskFromX
= -elWidth
* 2 + 'px';
106 from.set('mask-image', mask
);
107 from.set('mask-size', elWidth
* 3 + 'px ' + elHeight
* 3 + 'px');
108 from.set('mask-position-x', maskFromX
);
109 from.set('mask-position-y', maskFromY
);
111 to
.set('mask-position-x', maskToX
);
112 to
.set('mask-position-y', maskToY
);
114 // me.setEasing(out ? 'ease-in' : 'ease-out');