Parameterize duration and easing type