[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
I got it, thanks. On 2月4日, 上午9時07分, Mike Alsup wrote: > > but is that mean I have to write lots code to do what I want? > > actually I know the trick, just want to know can it complete through > > jQuery effect by only set the options. > > No, I only wanted you to see that to achieve that effect

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread Mike Alsup
> but is that mean I have to write lots code to do what I want? > actually I know the trick, just want to know can it complete through > jQuery effect by only set the options. No, I only wanted you to see that to achieve that effect you need to animate both the size *and* the position. As the wi

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread Ricardo Tomasi
$('#anim').animate({marginLeft: '-=50', width: '+=100'}); or $('#anim').css('position', 'relative').animate({left -50, width: '+=100'}); On Feb 3, 1:11 pm, Eric Garside wrote: > Hmm. Lets say you need it to grow 100px. Would: > > $('#anim').animate({paddingLeft: 50, width: 50}); > > work? It's h

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
but is that mean I have to write lots code to do what I want? actually I know the trick, just want to know can it complete through jQuery effect by only set the options. On 2月4日, 上午1時55分, "David .Wu" wrote: > thanks, this plugin is really cool. > > On 2月4日, 上午1時50分, Mike Alsup wrote: > > > > yu

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
thanks, this plugin is really cool. On 2月4日, 上午1時50分, Mike Alsup wrote: > > yup, I tried, but still not know to to do it proportionally. sigh.. > > Look at the technique used in this plugin: > > http://www.malsup.com/jquery/hoverpulse/

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread Mike Alsup
> yup, I tried, but still not know to to do it proportionally. sigh.. Look at the technique used in this plugin: http://www.malsup.com/jquery/hoverpulse/

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
yup, I tried, but still not know to to do it proportionally. sigh.. On 2月4日, 上午12時43分, Eric Garside wrote: > Try the jQuery UI "Scaling" effect. > > http://docs.jquery.com/UI/Effects/Scale > > On Feb 3, 11:21 am, "David .Wu" wrote: > > > Sorry for my bad explanation, I make a sample > > online

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread Eric Garside
Try the jQuery UI "Scaling" effect. http://docs.jquery.com/UI/Effects/Scale On Feb 3, 11:21 am, "David .Wu" wrote: > Sorry for my bad explanation, I make a sample > onlinehttp://chan.idv.tw/animate/enlarge.html > > On 2月3日, 下午11時11分, Eric Garside wrote: > > > Hmm. Lets say you need it to grow

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
Sorry for my bad explanation, I make a sample online http://chan.idv.tw/animate/enlarge.html On 2月3日, 下午11時11分, Eric Garside 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

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread Eric Garside
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" wrote: > animate function can change object's size by c