# After Effects easing in CSS: swap (speed and influence)

> swap: the After Effects handles (influence and speed), the CSS linear() string, and a live demo. It is 50% done at 50% of the time.

Canonical: https://vawe.dev/easing/swap
Last updated: 2026-11-04

swap reaches 50% of its travel at 50% of the time and 90% at 68%. Its peak speed is 4x the average.

A swap: the value waits at each key and changes in the middle.

| Measure | Value |
| --- | --- |
| Role | Move |
| Reaches 50% of its travel at | 50% |
| Reaches 90% of its travel at | 68% |
| Peak speed | 4x the average |

## CSS cubic-bezier

```css
cubic-bezier(0.75, 0, 0.25, 1)
```

## Web Animations

```js
el.animate({ translate: ['0 0', '240px 0'] }, { duration: 600, easing: 'linear(0, 0.0001, 0.0004, 0.0009, 0.0016, 0.0025, 0.0037, 0.0051, 0.0067, 0.0087, 0.0109, 0.0135, 0.0163, 0.0196, 0.0232, 0.0272, 0.0316, 0.0364, 0.0418, 0.0477, 0.0542, 0.0613, 0.0691, 0.0777, 0.087, 0.0973, 0.1087, 0.1211, 0.1349, 0.1501, 0.167, 0.1858, 0.2069, 0.2305, 0.2572, 0.2873, 0.3215, 0.3601, 0.4033, 0.4504, 0.5, 0.5496, 0.5967, 0.6399, 0.6785, 0.7127, 0.7428, 0.7695, 0.7931, 0.8142, 0.833, 0.8499, 0.8651, 0.8789, 0.8913, 0.9027, 0.913, 0.9223, 0.9309, 0.9387, 0.9458, 0.9523, 0.9582, 0.9636, 0.9684, 0.9728, 0.9768, 0.9804, 0.9837, 0.9865, 0.9891, 0.9913, 0.9933, 0.9949, 0.9963, 0.9975, 0.9984, 0.9991, 0.9996, 0.9999, 1)', fill: 'both' });
```

## In a vawe page

```js
import { EASE } from '../../core/motion/presets.js';

el.animate(
  [{ translate: '0 4vh', opacity: 0 }, { translate: '0 0', opacity: 1 }],
  { duration: 500, easing: EASE.swap, fill: 'both' },
);

// per-frame code (window.seek, vawe.onFrame): easeFn('swap')(u)
```

## After Effects handles

| Side | Influence | Speed |
| --- | --- | --- |
| Leaving a key | 75% | 0 |
| Arriving at a key | 75% | 0 |

## Use for

- The value change: a label, a number, a tab, a crop, in 0.15 to 0.4 s.
- Camera cuts on the move, where you want a crisp hit and a hold on both sides.

## Avoid for

- Scan or wipe travel, and any long distance. The middle is steep, so the line becomes a blur. Use settle.
- Slow, floating motion. It is the opposite of a drift.

## Related

- [easeInOutQuart](https://vawe.dev/easing/ease-in-out-quart)
- [easeInOutCirc](https://vawe.dev/easing/ease-in-out-circ)
- [easeInOutCubic](https://vawe.dev/easing/ease-in-out-cubic)
- [easeInOutQuint](https://vawe.dev/easing/ease-in-out-quint)
- [settle](https://vawe.dev/easing/settle)
- [easeInOutExpo](https://vawe.dev/easing/ease-in-out-expo)
- [All easing functions](https://vawe.dev/easing)
