Added animated state, along with a new demo that demonstrates it.