]>
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',
11 * Valid values are 'ease', 'linear', ease-in', 'ease-out', 'ease-in-out',
12 * or a cubic-bezier curve as defined by CSS.
17 * @cfg {String} direction The direction of which the slide animates
23 * @cfg {Boolean} out True if you want to make this animation wipe out, instead of slide in.
32 elBox
= el
.dom
.getBoundingClientRect(),
33 elWidth
= elBox
.width
,
34 elHeight
= elBox
.height
,
38 direction
= me
.getDirection(),
45 /* eslint-disable max-len */
49 mask
= '-webkit-gradient(linear, left top, left bottom, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';
50 maskFromY
= elHeight
* 3 + 'px';
51 maskToY
= elHeight
+ 'px';
54 mask
= '-webkit-gradient(linear, left top, left bottom, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';
55 maskFromY
= -elHeight
* 2 + 'px';
63 mask
= '-webkit-gradient(linear, left top, left bottom, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';
64 maskFromY
= -elHeight
* 2 + 'px';
68 mask
= '-webkit-gradient(linear, left top, left bottom, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';
69 maskFromY
= elHeight
* 3 + 'px';
70 maskToY
= elHeight
+ 'px';
77 mask
= '-webkit-gradient(linear, right top, left top, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';
78 maskFromX
= -elWidth
* 2 + 'px';
82 mask
= '-webkit-gradient(linear, right top, left top, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';
83 maskToX
= -elWidth
* 2 + 'px';
90 mask
= '-webkit-gradient(linear, right top, left top, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';
91 maskToX
= -elWidth
* 2 + 'px';
94 mask
= '-webkit-gradient(linear, right top, left top, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';
95 maskFromX
= -elWidth
* 2 + 'px';
101 /* eslint-enable max-len */
113 from.set('mask-image', mask
);
114 from.set('mask-size', elWidth
* 3 + 'px ' + elHeight
* 3 + 'px');
115 from.set('mask-position-x', maskFromX
);
116 from.set('mask-position-y', maskFromY
);
118 to
.set('mask-position-x', maskToX
);
119 to
.set('mask-position-y', maskToY
);
121 // me.setEasing(out ? 'ease-in' : 'ease-out');