Its a crude example, and needs refinement, but hopefully you get the idea. Useinf $.fx.step you can set up custom animation params to animate any aspect of the dom or even variables. You can even use it to do custom calculations to determine the next step in the animation. For example: I recently used $.fx.step to do a custom animation on a css3 gradient, which there is currently no pluggin for.