Animation Drivers
Choose and configure animation drivers for your platform
Tamagui supports four animation drivers across its platforms. Web supports CSS, Reanimated, and Motion. Native supports React Native and Reanimated.
You can swap drivers per platform, or dynamically load heavier drivers later in your app. For example, you can start with the lightweight CSS driver on initial load and upgrade to Motion once the user is authenticated.
Using config v6
With @tamagui/config/v6, add one animation entry for your platform. The entries share matching keys:
tamagui.config.ts
Every entry ships the same preset table, so bouncy, quick, and lazy mean
the same motion whichever driver you pick. There are no 100ms-style keys: a
duration is CSS now, so transition="100ms" works with nothing configured.
CSS Driver
The lightest bundle size. Springs work here too: they compile to a linear()
easing that traces the real spring curve with no JavaScript running. Best for
simple web-only apps.
Installation
yarn
npm
bun
pnpm
Configuration
An entry is a spring written as { duration, bounce }, or a plain CSS timing
string.
Supported easing functions: ease, linear, ease-in, ease-out, ease-in-out, cubic-bezier(x1, y1, x2, y2)
React Native Driver
Uses React Native’s built-in Animated API with no extra animation-library bundle. Use CSS, Motion, or Reanimated on web.
Installation
yarn
npm
bun
pnpm
Configuration
Spring parameters:
duration: the spring’s undamped period in milliseconds, defining how fast it feelsbounce: 0 is critically damped, toward 1 is loose, and negative is sluggishstiffness,damping, andmassstill work for a config already tuned against them
Reanimated Driver
Supports both native and web with advanced features, but has a larger bundle size. Best performance on native platforms with off-thread animations.
Installation
yarn
npm
bun
pnpm
Follow the Reanimated installation guide to complete setup.
Configuration
Motion Driver
Off-thread performance via WAAPI with excellent spring physics and a medium bundle size. Best for web-only apps that need smooth, physics-based animations.
Installation
yarn
npm
bun
pnpm
Configuration
Motion uses the Web Animations API (WAAPI) which runs animations on the compositor thread when possible.
Swapping Drivers
Tamagui supports several ways to use different drivers: at build time per platform, at runtime in specific parts of your app, or dynamically loaded after initial render.
Per-Platform with File Extensions
Use .native.ts and .ts file extensions to bundle different drivers per platform:
animations.ts
animations.native.ts
tamagui.config.ts
Dynamic with Configuration
Use the <Configuration> component to swap the animation driver for a subtree. This is useful for lazy loading heavier drivers only when needed. For example, you can keep initial page load fast with CSS animations, then upgrade to Motion for authenticated users:
app/_layout.tsx
This pattern works well with route-based code splitting, because the Motion driver is only loaded when the user navigates to an authenticated route.
Multiple Drivers with animatedBy
Configure multiple drivers at the root and select per-component:
tamagui.config.ts
Runtime Loading with loadAnimationDriver
Add drivers at runtime after app initialization: