How to apply css rules on element, just temporary, and apply them to next element, when they stop to affect previous?

How to apply css rules on element, just temporary, and apply them to next element, when they stop to affect previous?

I want jQuery to apply some css to one element, but that css rules should be active only, for example, half of second. And how to make that rules for some element begins exactly when rules for previous stops.
 Can somebody help me?
Thanks in advance.