Accept a function as easing