updated animations example to 0.5.x API