update animation class