Add initial support for animations.

This PR adds initial support for binary animations.