Refactored animation previewer.