]> git.proxmox.com Git - extjs.git/blame - extjs/packages/core/src/fx/animation/Fade.js
add extjs 6.0.1 sources
[extjs.git] / extjs / packages / core / src / fx / animation / Fade.js
CommitLineData
6527f429
DM
1/**\r
2 * @private\r
3 */\r
4Ext.define('Ext.fx.animation.Fade', {\r
5 extend: 'Ext.fx.animation.Abstract',\r
6\r
7 alternateClassName: 'Ext.fx.animation.FadeIn',\r
8\r
9 alias: ['animation.fade', 'animation.fadeIn'],\r
10\r
11 config: {\r
12 /**\r
13 * @cfg {Boolean} out True if you want to make this animation fade out, instead of fade in.\r
14 * @accessor\r
15 */\r
16\r
17 out: false,\r
18\r
19 before: {\r
20 display: null,\r
21 opacity: 0\r
22 },\r
23\r
24 after: {\r
25 opacity: null\r
26 },\r
27 reverse: null\r
28 },\r
29\r
30 updateOut: function(newOut) {\r
31 var to = this.getTo(),\r
32 from = this.getFrom();\r
33\r
34 if (newOut) {\r
35 from.set('opacity', 1);\r
36 to.set('opacity', 0);\r
37 } else {\r
38 from.set('opacity', 0);\r
39 to.set('opacity', 1);\r
40 }\r
41 }\r
42});\r