← Robin N

Shape
Or try

How to play

Do thisWithThe shape
PinchTrackpad, touch screenGrows and shrinks
Twist two fingersTrackpad in Safari, touch screenTurns
Scroll with two fingersTrackpadMoves
Hold Alt and scrollAny trackpad or mouseTurns
DragMouse, finger, penMoves
←→↑↓ +− []Keyboard, once the stage has focusMoves, grows, turns

Hold still for a moment Pause to finish and it loops what you did. No trackpad? Try Pulse Wobble Float Spin.

How a take becomes CSS

Your movement is recorded with its timing, then turned into evenly spaced keyframes. Because the spacing is even, the speed of your hand lives in the keyframes themselves, so the easing is just linear. The shape on the stage is playing exactly the CSS you copy.

Performed, not typed

Animating by performing a movement, rather than describing it, is an old idea. In 1969, Ronald Baecker's GENESYS let animators on MIT's TX-2 draw a motion's path and rhythm in real time.1 Motion Doodles turned sketched arcs and loops into a character's steps and jumps,2 K-Sketch let beginners animate by moving things while it recorded,3 and Bret Victor conducted an animation by hand on an iPad, with no keyframes at all.4

On the web, motion ended up typed. WebKit shipped keyframe animation in CSS in 2007,5 Apple proposed it to the W3C the same year,6 and it's still written as a list of percentages and transforms. This page writes that list for you.

What the browser can feel

Trackpads reach the web unevenly. Safari has had its own gesture events, with real scale and rotation, since 2008.7 Other browsers report a pinch as a wheel event with Ctrl held, an undocumented convention that stuck,8 and have no rotation at all, which is why Alt and scroll stands in for a twist here. Touch screens and pens go through Pointer Events, which handle drags and two-finger pinches and twists.9

References

  1. 1969 Ronald Baecker, Interactive Computer-Mediated Animation (GENESYS). MIT PhD thesis. On the TX-2, animators drew motion and rhythm in real time instead of specifying every frame. ↩︎
  2. 2004 Thorne, Burke & van de Panne, Motion Doodles: An Interface for Sketching Character Motion. SIGGRAPH. Sketched arcs and loops become steps, jumps and flips, timing included. ↩︎
  3. 2008 Davis, Colwell & Landay, K-Sketch: A “Kinetic” Sketch Pad for Novice Animators. CHI. Informal animation by moving things in real time, relying on a natural sense of space and timing. ↩︎
  4. 2012 Bret Victor, Inventing on Principle. CUSEC talk. An animation conducted by hand on an iPad, with no keyframes or tweening functions. ↩︎
  5. 2007 WebKit, CSS Animation. Keyframe animations declared entirely in CSS, first shipped in WebKit. ↩︎
  6. 2007 Hyatt, Jackson & Marrin (Apple), Proposal for CSS Animation. The proposal to the W3C that became the CSS Animations spec. ↩︎
  7. 2008 Apple, Safari Web Content Guide: Handling Events. gesturestart, gesturechange and gestureend, with scale and rotation. Still WebKit-only. ↩︎
  8. 2015 Kenneth Auchenberg, Detecting multi-touch trackpad gestures in JavaScript. A trackpad pinch arrives as a wheel event with ctrlKey set. ↩︎
  9. Now W3C, Pointer Events. One model for mouse, pen and touch. ↩︎