complez
complez

Reputation: 8352

extjs, Slideout animation doesnot work when I put a duration on it

This code below is good with default animation. But it's too fast.

pnlDataInput.el.slideIn('t');

So I give it a custom duration. And it never animation with any duration value. It just show up.

pnlDataInput.el.slideIn('t', {
            duration: 4
        });

Upvotes: 2

Views: 680

Answers (1)

ramblinjan
ramblinjan

Reputation: 6694

Either the duration may be in milliseconds:

pnlDataInput.el.slideIn('t', {
        duration: 4000
    });

Or you may need an easing option:

pnlDataInput.el.slideIn('t', {
        easing: 'easeOut',
        duration: 4
    });

Upvotes: 3

Related Questions