$('#anim').animate({marginLeft: '-=50', width: '+=100'});
or
$('#anim').css('position', 'relative').animate({left -50, width:
'+=100'});

On Feb 3, 1:11 pm, Eric Garside <gars...@gmail.com> wrote:
> Hmm. Lets say you need it to grow 100px. Would:
>
> $('#anim').animate({paddingLeft: 50, width: 50});
>
> work? It's hard to say what would help without a better idea of what
> the element you want to grow looks like.
>
> On Feb 3, 9:34 am, "David .Wu" <chan1...@gmail.com> wrote:
>
> > animate function can change object's size by control css, such as
> > width and height,
> > if if we want to increase the width, the width increased to right
> > ->
> > how to do it like below
> > <- ->

Reply via email to