ToolPal

CSS cubic-bezier 生成器

使用可拖拽的控制点编辑器和实时动画预览,可视化打造 CSS cubic-bezier 缓动曲线。

1001

拖动彩色控制点来塑造曲线。Y 可低于 0 或高于 1 以实现回弹效果。

颜色强度对曲线在 11 个等间距时间点进行采样。

transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);

/* with shorthand */
transition: all 1000ms cubic-bezier(0.25, 0.1, 0.25, 1);

/* on a keyframe animation */
animation: my-anim 1000ms cubic-bezier(0.25, 0.1, 0.25, 1) infinite;

使用方法

使用可拖拽的控制点编辑器和实时动画预览,可视化打造 CSS cubic-bezier 缓动曲线。

  1. 1Click a preset (ease, ease-in-out, ease-out-back, etc.) to load a starting curve.
  2. 2Drag the two colored control points on the curve panel to shape the easing — Y can extend beyond 0 and 1 for overshoot.
  3. 3Watch the live animation preview to feel the motion. Adjust the duration slider for slower or faster playback.
  4. 4Fine-tune by typing exact values into the x1 / y1 / x2 / y2 number fields.
  5. 5Click 'Copy' to copy the cubic-bezier(...) value, then paste it into your CSS transition or animation.

主要功能

  • Drag-to-edit control points with overshoot range — Y values can go negative or above 1 for spring-like motion
  • Eight presets including overshoot variants (ease-out-back, ease-in-out-back, elastic)
  • Live demo with adjustable duration and replay button — feel the curve before copying it
  • Numeric x1/y1/x2/y2 fields synced with the visual editor — precise tuning either way
  • Output includes the standalone cubic-bezier() value plus complete transition/animation snippets

常见问题

了解更多