Cubic Bezier Easing Curve Editor
Shape an easing curve by dragging two handles, compare it with CSS and Material presets in moving previews, and copy code for every platform.
브라우저에서 실행됩니다. 파일은 기기 밖으로 나가지 않습니다. 확인하는 방법 보기
…
사용 방법
- 1Drag the handles
Drag the pink P1 and blue P2 points on the graph, or type the four values.
- 2Paste a curve
Paste cubic-bezier(…) or a keyword like ease-out into the paste field and press Use.
- 3Play the motion
Set the duration and preview animation, then press Play.
- 4Compare presets
In Compare with press vs on up to four presets to animate them beside your curve.
- 5Save it
Press Save curve to keep the curve under a name in this browser.
- 6Copy code
Choose CSS, CSS linear(), JavaScript, Android or iOS and copy or download the code.
이 도구 소개
Easing decides how an animation feels. The same 300 millisecond slide can look sluggish, natural, snappy or playful depending on four numbers in a cubic-bezier curve. This editor lets you drag the two control points of the curve and immediately play the motion, next to up to four other easings you pick from CSS keywords, the classic Robert Penner easings and Material Design curves. Values above 1 or below 0 create overshoot and anticipation, and the tool shows the exact range the animated value will reach. When the motion feels right, copy ready code for CSS transitions and keyframes, the newer CSS linear() function, the Web Animations API, Android XML and Kotlin, Jetpack Compose, Core Animation, SwiftUI and Flutter.
Who this is for
UI developers, motion and product designers handing curves to engineers, and teams that want the same easing on web, Android and iOS so that the product feels consistent.
How a cubic-bezier works
The curve starts at (0, 0) and ends at (1, 1). The x axis is time and the y axis is progress. You control two points, P1 (x1, y1) and P2 (x2, y2). The x values must stay between 0 and 1 so that time never runs backwards; y values may go outside that range. For any moment in time the browser finds the point on the curve by solving for x, using Newton iterations and bisection, the same method this tool uses for its value table.
Compare and feel
Play runs your curve and every compared curve at the same time with the same duration, as a move, scale, fade or rotate animation. The previews use the browser's own animation engine with the exact timing function string, so what you see is what your CSS will do.
Outputs
- CSS: a custom property, a transition and an @keyframes animation. - CSS linear(): a 20-stop approximation for places where you want the curve as data. - JavaScript: element.animate with the easing string, and a standalone solver function for canvas or game loops. - Android: a res/interpolator XML file, PathInterpolatorCompat in Kotlin and CubicBezierEasing for Compose. - iOS and Flutter: CAMediaTimingFunction, SwiftUI timingCurve and Flutter Cubic.
Worked example
The pop curve cubic-bezier(0.34, 1.56, 0.64, 1) is the same as easeOutBack. Its value range is about 0 to 1.10, so an element that slides 240 pixels overshoots by roughly 24 pixels before settling. At 50 % of the time it has already covered about 109 % of the distance, which is what makes it feel springy.
Limits
A single cubic-bezier cannot bounce more than once or model a real spring with several oscillations; for that use CSS linear() with many stops or a spring animation API. Android PathInterpolator and CSS both reject x values outside 0 to 1, so the editor clamps them.
풀이 예시
cubic-bezier(0.34, 1.56, 0.64, 1): value range 0 to about 1.10, so a 240 px slide overshoots about 24 px before settling.
한눈에 보기
- 카테고리: 개발 및 데이터
- 브라우저에서 실행되며 가입도 업로드도 필요 없습니다.
- 입력한 정보는 기기에 머뭅니다.
- 영어로 제공됩니다.
- 콘텐츠 최종 검토일:
- 공식 출처: W3C CSS Easing Functions Level 1 (cubic-bezier) and Level 2 (linear()); Android PathInterpolator reference
자주 묻는 질문
What do the four numbers mean?
They are the coordinates x1, y1, x2, y2 of the two control points. x is time and y is progress.
Why can y go above 1?
A y value above 1 makes the animated value pass its target and come back, which looks like a spring or overshoot. Below 0 it moves backwards first, like anticipation.
What is CSS linear()?
A newer CSS easing function that lists progress values at points in time. It can describe any shape, including several bounces, and is supported in current browsers.
Will the curve look the same on Android and iOS?
Yes. PathInterpolator, CAMediaTimingFunction, SwiftUI timingCurve and Flutter Cubic all use the same cubic-bezier definition as CSS.
Which easing should I use for UI?
Elements entering the screen usually look best with an ease-out curve, elements leaving with ease-in, and elements moving within the screen with a standard ease-in-out.
Are my saved curves stored online?
No, saved curves stay in this browser's local storage.
