Thank you so much, this is just what I needed :)

Ramon

On 7 oct, 19:40, "Richard D. Worth" <rdwo...@gmail.com> wrote:
> In the second argument to .animate() you can specify a step callback, like
> so
> $("#myDiv").width(100);
> $("#myDiv").animate({ width: "500px" }, {
>   duration: 500,
>   step: function(val, opt) {
>     console.log(val, opt)
>   }
>
> });
>
> The val in above will go from 100 to 500, and opt will contain among others,
> a 'prop' member, a string specifying which property is being animated in
> that step, in this case 'width'. This is key if for example you had
> specified to animate both the width and the height, but you want to handle
> each differently.
>
> - Richard
>
> On Wed, Oct 7, 2009 at 12:11 PM, Ramon <ramona...@gmail.com> wrote:
>
> > Hi all, I hope you will be able to help me out.
> > I was wondering if there is a way to execute a function after every
> > animation step WITHOUT modifying jQuery core.
>
> > Thanks in advance!
> > Ramon

Reply via email to