STUDIO PICK · COMPONENT

Curve Lab — Bézier playground

An interactive cubic Bézier diagram with keyboard-friendly control sliders and copyable path coordinates.

LIVE PREVIEW Isolated & interactive
<!-- Original layout, SVG/CSS artwork and JavaScript © 2026 XXC Templates. MIT License.
Illustrative sample content and data; no real accounts, purchases or bookings. -->
<main>
  <header class="intro">
    <div>
      <div class="kicker">CURVE LAB / GEOMETRY IN MOTION</div>
      <h1>A curve has character.</h1>
      <p>Shape a cubic Bézier by changing its two control points.</p>
    </div>
  </header>
  <section class="panel">
    <svg
      id="chart"
      viewBox="0 0 700 270"
      role="img"
      aria-label="Interactive cubic Bézier curve"
    ></svg>
    <div class="curve-controls">
      <label
        >X1 <input data-control="x1" type="range" min="0" max="700" value="160" /><output
          id="out-x1"
          >160</output
        ></label
      ><label
        >Y1 <input data-control="y1" type="range" min="0" max="270" value="30" /><output id="out-y1"
          >30</output
        ></label
      ><label
        >X2 <input data-control="x2" type="range" min="0" max="700" value="520" /><output
          id="out-x2"
          >520</output
        ></label
      ><label
        >Y2 <input data-control="y2" type="range" min="0" max="270" value="230" /><output
          id="out-y2"
          >230</output
        ></label
      >
    </div>
    <div class="toolbar">
      <button id="change">Try another curve</button><button id="reset">Reset</button>
    </div>
    <code id="path-code"></code><output id="status" class="status" aria-live="polite"></output>
  </section>
</main>
Revision history · 1 versions
v12026-10-05 17:12:57 UTC

Keep the ideas flowing.

Explore the library
HELP KEEP THE WORKSHOP USEFUL

Report this creation

ONE QUICK CHECK

Continue?