animation and duration added as options