api-update

Changed the API to use CSS transition rather than animations.