-
Control position based on a slider's valueAtTime, but with a custom easing
I’d like to control a layer’s position relative to its starting position, using an animated slider’s valueAtTime(). I want to do a sort of custom easing on the position change. Here’s an arbitrary example:
When the slider is at 100, the position should be 0. When the slider is at 0, the position should be 100. But when the slider is at 40, the position is 75. Is this possible using combinations of ease() or linear(), or something else entirely?