add animation blocks to modularize animation