CSS easing functions, in motion.
29 curves, from the five CSS keywords to back's overshoot. Shape your own, watch it move, and copy it as CSS, a Tailwind class or a @theme variable.
Shape a curve
Drag the two handles, or type the numbers. Four motions run your curve at once, beside a linear ghost, then copy it as CSS, a Tailwind class or a theme variable.
- Move
- Scale
- Rotate
- Fade
- CSS
cubic-bezier(0.16, 1, 0.3, 1)- Tailwind class
ease-[cubic-bezier(0.16,1,0.3,1)]- Theme variable
--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
29 curves, from linear to back
The five CSS keywords, then 8 classic families in, out and in-out. Hover one to watch it move; pick one to shape it in the playground.
29 curves shown.
Every curve as a Tailwind class
Paste one @theme block, and every named curve is a class: ease-out-expo, ease-in-out-back and the rest. Tailwind's own ease-in, ease-out and ease-in-out stay as they are.
In your CSS, once
@theme {
--ease-in-sine: cubic-bezier(0.12, 0, 0.39, 0);
--ease-out-sine: cubic-bezier(0.61, 1, 0.88, 1);
--ease-in-out-sine: cubic-bezier(0.37, 0, 0.63, 1);
--ease-in-quad: cubic-bezier(0.11, 0, 0.5, 0);
--ease-out-quad: cubic-bezier(0.5, 1, 0.89, 1);
--ease-in-out-quad: cubic-bezier(0.45, 0, 0.55, 1);
--ease-in-cubic: cubic-bezier(0.32, 0, 0.67, 0);
--ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
--ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
--ease-in-quart: cubic-bezier(0.5, 0, 0.75, 0);
--ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
--ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
--ease-in-quint: cubic-bezier(0.64, 0, 0.78, 0);
--ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
--ease-in-out-quint: cubic-bezier(0.83, 0, 0.17, 1);
--ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0);
--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
--ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
--ease-in-circ: cubic-bezier(0.55, 0, 1, 0.45);
--ease-out-circ: cubic-bezier(0, 0.55, 0.45, 1);
--ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
--ease-in-back: cubic-bezier(0.36, 0, 0.66, -0.56);
--ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
--ease-in-out-back: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}Then on anything that moves
export const Card = () => (
<div className="transition duration-300 ease-out-expo hover:-translate-y-1">
…
</div>
);
// Or the variable, wherever CSS takes a timing:
// transition: transform 400ms var(--ease-in-out-quart);Build it with Pro
The visualizer is free. Pro adds 6,000+ blocks, premium templates and the MCP server, so your AI editor builds the motion for you.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
Frequently asked questions
Find answers to frequently asked questions about CSS easing functions, cubic-bezier curves, animation timing, and implementation best practices.
CSS easing functions are timing functions that control how an animation progresses over time. They define the acceleration curve: whether an animation starts slow and speeds up (ease-in), starts fast and slows down (ease-out), or combines both (ease-in-out). These functions create natural, smooth motion that enhances user experience.
A cubic-bezier curve is a mathematical function defined by four control points that creates smooth curves. In CSS, it's written as cubic-bezier(x1, y1, x2, y2) where x values represent time (0-1) and y values represent progression. This allows precise control over animation acceleration and deceleration patterns. The playground above draws the two control points as handles you can drag.
Ease-in animations start slowly and accelerate, creating anticipation before action. Ease-out animations start quickly and decelerate, providing immediate response with gentle settling. Ease-in-out combines both, starting and ending slowly with acceleration in the middle, creating the most natural motion for UI interactions.
Linear easing maintains constant speed throughout the animation with no acceleration or deceleration. It's defined as cubic-bezier(0, 0, 1, 1). Use it for progress bars, loading indicators, or any animation that should feel mechanical and consistent rather than natural.
Tailwind provides built-in easing classes: ease-linear, ease-in, ease-out, and ease-in-out (Tailwind's own curves, slightly sharper than the CSS keywords of the same name). For custom curves, use arbitrary values: "ease-[cubic-bezier(0.4,0,0.2,1)]". In Tailwind v4, add reusable easings as --ease-* variables in your @theme block (v3 used transitionTimingFunction in tailwind.config.js).
Pick a curve in the grid, or shape your own in the playground, and copy it as CSS (cubic-bezier(x1, y1, x2, y2)), a Tailwind class or a @theme variable. "Copy @theme" copies all 24 named curves at once as Tailwind v4 theme variables, so ease-in-out-cubic and the rest become classes in your project.
In Framer Motion (now Motion), pass easing arrays to the transition prop: transition={{ ease: [0.4, 0, 0.2, 1] }}. You can also use named easings like "easeInOut" or create custom cubic-bezier arrays. The four numbers in each curve here work as-is in both CSS and JavaScript animation libraries.
Yes, Tailwind supports arbitrary values using square bracket notation: "ease-[cubic-bezier(0.68,-0.55,0.265,1.55)]". For reusable custom easings in Tailwind v4, define them in @theme (--ease-snappy: cubic-bezier(...)) and use ease-snappy throughout your project.
Use ease-out for button hover and click states. It provides immediate visual feedback (fast start) with a gentle settling effect (slow end). For button press animations, ease-out-cubic or ease-out-quart work well. Avoid ease-in for interactions as the delayed start feels unresponsive.
Use ease-out for modal entrance (immediate appearance, gentle settle) and ease-in for exit (gentle start, quick disappear). For backdrop fades, ease-in-out works well. Duration should be 200-300ms for modals to feel responsive without being jarring.
Use 100-200ms for micro-interactions (hover, focus), 200-300ms for UI state changes (modals, dropdowns), 300-500ms for layout transitions, and 500-800ms for page transitions. Faster is usually better: if in doubt, make it shorter. Always test on mobile devices, and respect prefers-reduced-motion.
Match easing to purpose: ease-out for entrances and interactions, ease-in for exits, ease-in-out for state changes. Keep durations short (under 300ms for most UI). Animate transform and opacity for best performance. Use consistent timing across your app for a cohesive feel.
Overshoot easings (back, elastic) have y-values outside 0-1, causing the animation to temporarily exceed its final state before settling. Ease-out-back creates a slight bounce past the target. Use sparingly for playful UI elements, but avoid for serious or professional interfaces.
Standard CSS easings are hardware-accelerated and perform identically. Complex cubic-bezier curves have negligible performance impact on modern browsers. The main performance concern is what you animate: stick to transform and opacity. Avoid animating layout properties like width, height, or margin.
In CSS @keyframes, the timing function applies between each keyframe, not across the entire animation. Use animation-timing-function to set the default, or specify timing per-keyframe. For complex multi-step animations, you may need different easings between different keyframes.
Yes, cubic-bezier timing functions are supported in all modern browsers including Chrome, Firefox, Safari, and Edge. They work with CSS transitions, CSS animations, and JavaScript animation APIs. The values are standard CSS and framework-agnostic, working with React, Vue, Angular, and vanilla JS.
4.9 out of 5 from 150+ developers
Your motion, built for you
Every block, template and icon, installed by your AI agent in your theme. The visualizer stays free.
Get Pro