tween
Choose fixed-duration timing instead of spring response.
Quick reference
| Syntax | Behavior |
|---|---|
tween | Explicit engine selection. |
duration-150 | Default duration: 150 ms. |
ease-in-out | Default easing. |
Example
<View class="w-12 h-12 bg-accent transition-opacity tween duration-300 ease-out" />
Rules and validation
Timing settings apply to the effective base or phase engine. An effective tween rejects spring-only physical settings. Adding duration alone does not silently switch engines. Use tween duration-0 for an immediate timed response. The property selector still decides what changes animate.