Animation bugfixes and example