Numbers and units
Drag, type or step a number, with its unit and relative operator.
Editing a number
- Drag the bar at the left edge of a number field to scrub its value.
- Click the field to type a value.
- Press the up and down arrow keys to step the value. Hold Shift for ten steps, or Alt for a tenth of a step.
Units
A numerical value with a unit, such as '12rem' or '45deg', keeps its unit while you scrub. Type another unit to change it:
animate('.card', {
id: 'Card slide',
x: '12rem',
rotateY: '45deg',
});

Relative values
A relative value adds to, subtracts from or multiplies the current value of the target. Type its operator in front of the number, such as +=100, -=2rem or *=2. Scrubbing keeps the operator and the unit.
