In case you’ve ever wanted to directly animate a non-numeric property using jQuery, the step callback allows you to tap directly into the animation interval:
Since you’re tacking on code to the normal animation() loop, be mindful of the performance impact. Here’s a quick test on JSPerf.
