PDA

View Full Version : Using slideIn animation instead of simple show



ChrisOhB
9 Aug 2013, 12:12 PM
I have a component. By default, it's hidden. At some point, the component has its `show()` function called to make the component visible.

Instead of just instantaneously appearing upon, I want it to slide in from the right, starting with 0% opacity and fading in to 100%.

Can ExtJS do this? How can I accomplish this? The existing code is as follows. What would `addMenuItem` need to have instead of simply `cmp.show()`?


function addMenuItem(cmp) {
cmp.show();
}

mitchellsimoens
11 Aug 2013, 4:24 PM
You can show it offscreen (using showAt method) and then animate it into view the way you wish.