Classes for animations

Classes for the expand and collapse animations have been made. This
makes it easier to expand and collapse views.