Skip to article

progress

progress() returns how far a value is through a range, as a number from 0 to 1.

progress returns how far a value is through a range. 0 is the start of the range and 1 is the end.

progress(0, 200, 50) // 0.25

It's the opposite of mix. mix turns progress into a value, and progress turns a value into progress.

Usage

Import from Motion:

import { progress } from