]> git.proxmox.com Git - sencha-touch.git/blob - src/src/fx/layout/card/Pop.js
b6000a82f9922d2133ba783d358f5085ba582ea1
[sencha-touch.git] / src / src / fx / layout / card / Pop.js
1 /**
2 * @private
3 */
4 Ext.define('Ext.fx.layout.card.Pop', {
5 extend: 'Ext.fx.layout.card.Style',
6
7 alias: 'fx.layout.card.pop',
8
9 config: {
10 duration: 500,
11
12 inAnimation: {
13 type: 'pop',
14 easing: 'ease-out'
15 },
16 outAnimation: {
17 type: 'pop',
18 easing: 'ease-in',
19 out: true
20 }
21 },
22
23 updateDuration: function(duration) {
24 var halfDuration = duration / 2,
25 inAnimation = this.getInAnimation(),
26 outAnimation = this.getOutAnimation();
27
28 inAnimation.setDelay(halfDuration);
29 inAnimation.setDuration(halfDuration);
30 outAnimation.setDuration(halfDuration);
31 }
32 });