jQuery animate with function values

Hello everyone.

Is there a way to use animate() with a map that has a function for the value, like you can with css()?

I’ve tried {left: function(index) { return index * 50; }} and it doesn’t do anything.

Any help would be greatly appreciated.

  • Chris

EDIT: I should note that I do get a “Warning: Error in parsing value for ‘left’. Declaration dropped.” message when it runs, so it’s trying… just not creating an appropriate value.

What I ended up doing was wrapping the animate() call inside of an each() call.