A base class for animations