Improved Animation class with split func