added support for control of easing and duration