Skip to main content

tween

Choose fixed-duration timing instead of spring response.

Quick reference​

SyntaxBehavior
tweenExplicit engine selection.
duration-150Default duration: 150 ms.
ease-in-outDefault 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.

Fixed timing · All reference