Restricts a property’s value within a specified range.
Contributed by:
clamp(value, minValue, maxValue)
Ensuring that a layer's scale never goes below 50% or above 150%, no matter what animations or adjustments you apply.
Great for interactive animations where objects change color as they move, such as sliders, maps, or responsive graphics.
Useful for triggering UI animations on click or hover, like button highlights or tooltips.
Changing the opacity of a layer if it crosses a certaing position.
Making a text layer's opacity blink between 100% and 0% every second.