Apply the attribute changes after animating its values.
Fixes #554.