Refactor to modularize animation mixins.