/

Experiment

Experiment

2026

React, Canvas

Variable type toy

Drag to bend a variable font.

Camera report

Scene

Experiment

Year

2026

Tools

React, Canvas

The idea

Variable fonts have a weight axis that most sites set once and never touch. I wanted to know what happens when the reader holds the axis in their hand.

One weekend, one screen, one rule: drag anywhere and the letters get heavier the further you pull.

How it's built

A small React component with one animation loop. Pointer distance goes in, an eased weight value comes out, and the text reads it through a CSS variable.

  • One requestAnimationFrame loop for everything that moves

  • Weight lives in a CSS variable, not in React state

  • Works with a mouse, a finger and the arrow keys

  • Under 4 kB gzipped, no animation library

let w = 400, target = 400
addEventListener("pointermove", (e) => {
  target = 100 + (e.clientX / innerWidth) * 800
})
function tick() {
  w += (target - w) * 0.12
  el.style.setProperty("--wght", w.toFixed(0))
  requestAnimationFrame(tick)
}
tick()
let w = 400, target = 400
addEventListener("pointermove", (e) => {
  target = 100 + (e.clientX / innerWidth) * 800
})
function tick() {
  w += (target - w) * 0.12
  el.style.setProperty("--wght", w.toFixed(0))
  requestAnimationFrame(tick)
}
tick()
let w = 400, target = 400
addEventListener("pointermove", (e) => {
  target = 100 + (e.clientX / innerWidth) * 800
})
function tick() {
  w += (target - w) * 0.12
  el.style.setProperty("--wght", w.toFixed(0))
  requestAnimationFrame(tick)
}
tick()

What I learned

Type reads as alive when it lags the hand by a fraction. Too fast feels like a slider, too slow feels broken.

  • Tune the easing before the colours

  • Test on a cheap phone, not on a laptop

Half of the hover states I ship today started as this toy.

FRAME 10 — Contact

Have a project? Let’s shoot.

Tell me what you are making. I reply within a day with next steps and a rough plan.

Studio 1 · Rec

Studio 1 · Rec

Studio 1 · Rec

Prod.

Portfolio 2026

Scene

Footer

Take

1

Roll

A-09

Director

Mara Voss

Date

27.10.26

Build

main · 9f3c1a

That’s a wrap.

Thanks for watching to the end. Say hello, I read every message and reply within a day.

Write to me

© 2026 Mara Voss

Local time

09:00

· Berlin

Back to top

↑

Create a free website with Framer, the website builder loved by startups, designers and agencies.