Cubic-Bezier Easing Name Control Points Lookup

Return the two cubic Bezier control points specified for a CSS easing keyword.

Description

A cubic Bézier easing curve uses fixed endpoints (0,0) and (1,1) with two intermediate control points.

A cubic Bézier easing curve uses fixed endpoints (0,0) and (1,1) with two intermediate control points. CSS easing keywords provide established control-point choices for common acceleration patterns.1, 2

Return the two cubic Bezier control points specified for a CSS easing keyword.

When to use Cubic-Bezier Easing Name Control Points Lookup

Use this tool to return the two cubic Bezier control points specified for a CSS easing keyword.

Choose the CSS values, dimensions or counts for this calculation. Supply resolved numeric measurements in matching units and the explicit reference box or writing mode where required.

How to use Cubic-Bezier Easing Name Control Points Lookup and understand its results

  1. Choose the CSS values, dimensions or counts for this calculation. Supply resolved numeric measurements in matching units and the explicit reference box or writing mode where required.
  2. Enter keyword using the field table and calculation rules, then run the tool.
  3. Read x1, y1, x2, y2. The explanation below defines the units, signs, ordering and any flags or placeholder values.
  4. If the tool reports an input issue, correct the values and run it again. Apply the stated assumptions when interpreting a successfully returned result.
Input fieldMeaningValue type; see rules belowRequirement
keywordEasing keywordstring; one of linear, ease, ease-in, ease-out, ease-in-outRequired

Choose linear, ease, ease-in, ease-out or ease-in-out. The lookup returns four numeric coordinates: linear (0,0,1,1), ease (0.25,0.1,0.25,1), ease-in (0.42,0,1,1), ease-out (0,0,0.58,1), or ease-in-out (0.42,0,0.58,1). The endpoints are implicit and are not returned.

keyword → (x1, y1, x2, y2) for the two control points

Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.

Output fieldMeaningValue type
x1First control point xnumber
y1First control point ynumber
x2Second control point xnumber
y2Second control point ynumber
json
{
  "input": {
    "keyword": "ease"
  },
  "output": {
    "x1": 0.25,
    "y1": 0.1,
    "x2": 0.25,
    "y2": 1
  }
}

Limitations and assumptions

It returns control points rather than evaluating output progress or solving the curve's x coordinate. Custom cubic-bezier values, steps and linear() piecewise functions are outside this lookup. The returned linear points describe the equivalent straight easing curve.

Numeric inputs must be finite. Follow the calculation-specific rules for overflow, underflow and exceptional cases. Extremely large text inputs are rejected. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors.

Alternative or Complementary methods

Use steps() Jump-End/Start Count: Evaluate CSS steps timing at progress zero through one for jump-start or jump-end, including the before flag. For a complementary task, use Keyframe Percent Even Split Calculator: Generate evenly spaced keyframe percentages including 0 and 100 from a count of at least two, returning full number precision and limiting materialization to 10,000 offsets.

Further background: CSS Easing Functions Level 2.

References

  1. Cubic-Bezier Easing Name Control Points Lookup — tool.io

  2. CSS Easing Functions Level 2 — W3C

Similar or alternative tools

  • steps() Jump-End/Start Count

    Evaluate CSS steps timing at progress zero through one for jump-start or jump-end, including the before flag.

  • Keyframe Percent Even Split Calculator

    Generate evenly spaced keyframe percentages including 0 and 100 from a count of at least two, returning full number precision and limiting materialization to 10,000 offsets.

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies