Skip to content
Theme

Chapter 04 · Motion

Motion with weight.

Interfaces respond quickly, characters move with intent, and the world gives them space. This chapter measures Bit’s springs and shows the walking and riding cycles that make movement feel natural.

04.1 — Motion lab

Motion with purpose.

Fast responses, characters with weight, a world that gives space. This study uses production Bit; its choreography has not replaced the mascot's behaviour.

01

Interface

Brief and clear. Acknowledge input and explain state changes.

02

Character

Anticipation → action → recovery → rest. One main action at a time.

03

World

Background motion is calmer, providing context while characters act.

Anticipate, take off, land, then return to calm.

Device preference: standard motion. The device preference always takes priority.

Motion preview

Ready to play.

Study durations and curves come from the motion tokens in Chapter 01 · UI motion tokens.

04.2 — Production springs

Bit's production springs.

Curves are computed from the mascot's constants, stiffness k and damping c, with the same spring function. ζ < 1 bounces; dashed line = target, band = ±2%.

  • Squash squash k 520 · c 20
    ζ
    0.44
    overshoot
    21%
    settles
    0.35 s
  • Head kepala k 320 · c 19
    ζ
    0.53
    overshoot
    13%
    settles
    0.31 s
  • Antenna antena k 170 · c 10
    ζ
    0.38
    overshoot
    27%
    settles
    0.63 s
  • Arm lengan k 240 · c 15
    ζ
    0.48
    overshoot
    17%
    settles
    0.51 s
  • Tilt miring k 170 · c 12
    ζ
    0.46
    overshoot
    19%
    settles
    0.63 s
  • Gaze pandang k 220 · c 22
    ζ
    0.74
    overshoot
    3%
    settles
    0.37 s
  • Body turn hadap k 160 · c 20
    ζ
    0.79
    overshoot
    1%
    settles
    0.29 s
  • Head turn toleh k 260 · c 24
    ζ
    0.74
    overshoot
    2%
    settles
    0.33 s
  • Lean condong k 200 · c 18
    ζ
    0.64
    overshoot
    7%
    settles
    0.41 s

The interface uses CSS transitions of 150–300 ms; only characters use springs. Current production joint range: ζ 0.38–0.79, overshoot 1–27%, settles 0.29–0.63 seconds. A little bounce is intentional to convey weight; if a joint feels restless, increase damping c first.

04.3 — Walking cycles

Steps from distance.

Procedural two- and four-legged cycles from mascot/cycle.ts, using the same functions as the sandbox and character gallery.

Turning · body yaw and head turn

Body yaw · 30°

Head turn · 0°

Every part of Bit is a 3D block, rotated and projected at the same voxel angle as before. At 0° Bit resembles the earlier drawing; walking turns the body about 64° so steps read from the side while the LED face stays visible. The head leads and the body follows.

Walking cycle · phase follows distance

Intensity · 1.0 (walk)

Step phase is calculated from distance, not time: faster movement swings the legs faster with the same stride length. The body lowers exactly as the swinging leg shortens, keeping the supporting foot on the ground.

Key poses · contact and passing
  1. Contact

    left foot forward, body lowest

  2. Passing

    right leg passes, body highest

  3. Contact

    right foot forward

  4. Passing

    left leg passes, raised

Classic principles: arms swing opposite their paired leg; the body is lowest at contact and highest as the legs pass; the head and antenna follow slightly late. All come from one pure function (cycle.ts) shared by the home stage, sandbox and this study.

04.4 — Storytelling cameras

Storytelling cameras.

Shots, character angles, and cuts from DESIGN.md §6, calculated by domain/world/camera.ts over the real /world map. This lab explores camera studies alongside the shots already used by the world.

Study · not yet used in production

The first three /world locations through film language: establishing, follow, medium, close-up, two-shot, over-the-shoulder (OTS), reaction, cutaway, insert, and point-of-view (POV).

Arrival and cutaway — beat 1/5 · Walking toward the lane. Follow · 1.0×.

Alternatives to rapid camera moves: natural wipe ← whip pan · stepped cut ← crash zoom · impact ← shaky camera · tension + dimmed background ← dolly zoom · tilted head + still tilted title card ← Dutch angle. Calm Mode replaces the wipe with a fade.

04.5 — Home page motion

Assemble, carry, pay attention.

Production motion on the home page. The Sela mark assembles itself once when the page loads, and Bit carries one piece through the Process stages on /services as you scroll (CSS only). Real numbers count up once when seen, the world window shows Gresik at this hour, and Bit turns to the highlighted service card. Text never waits for an animation.

Logo assembly

Pieces land along the stroke of the S (urutanRakit in domain/brand.ts), the accent dot last, the gap left empty. On the home page it plays once per document load; returning through client-side navigation shows the logo whole.

Whole. Press Replay to assemble.

Process track

Scroll this box: each stage = rest, hop, rest (view-timeline + steps, no JS). The accent line behind Bit is the work trail. Without scroll-timeline support, with reduced motion, or in forced colors, Bit stays at the first stage.

Scroll the box or press Auto-scroll.

Home assembly bench

The real home hero component: a made-up page for a Gresik dish seller assembles one piece at a time, the yellow button last, then the Tested stamp. Assemble another page replays it with the next dish, Pause holds it. It stops by itself off screen and in a hidden tab; reduced motion shows the finished page at once.

Being assembled

A made-up page for a seller of a Gresik dish: Nasi krawu.

See all business types

Honest numbers

The home component with real data. Without JS the final numbers show; counting only swaps tabular text, so the layout never shifts.

Automated tests
5,800+
Languages on this site
7
Places in Bit's world
55
How these numbers are counted

Press Replay.

World window

Still like a postcard: real assets, clock at zero, no sound or storage. One place per WIB date, never a pilgrimage site. Pick an hour or date to see the rule.

Gresik right now, in Bit's world

Bit turns to the card

Hover with a pointer or focus with Tab. It only overrides the idle pose and holds the next action; Bit's mode and sleep are untouched, so letting go returns to the usual pose.

Bit sits on an edge with its legs dangling.

Hover a card or press Highlight in turn.

Living work

The Work card component. Real recordings only: client or NDA work is never recorded. It plays while visible and stops off screen or in a hidden tab. Reduced motion and data saver keep the poster and download no video.

Recorded from this site: the Gresik Nyel world. The Studio panel is not shown: it sits behind two-factor login and holds client data.
Screen recording of collection.syafrilverse.id.

Code → interface

This lives on /under-the-hood, not the home page, because it proves how the site is built rather than selling anything. The code is the source file of the component beside it. It types once when visible, pauses off screen, and reduced motion goes straight to the final state.

Svelte
<script lang="ts">
	import { m } from '#lib/paraglide/messages';
	import Badge from '#lib/ui/badge.svelte';
	import Field from '#lib/ui/field.svelte';
	import Switch from '#lib/ui/switch.svelte';

	let lit = $state(true);
</script>

<div class="grid justify-items-start gap-4">
	<Field label={m.bt_code_lamp()} inline>
		<Switch bind:checked={lit} />
	</Field>
	<Badge variant={lit ? 'success' : 'neutral'}>
		{lit ? m.bt_code_lit() : m.bt_code_unlit()}
	</Badge>
</div>

The result

On

04.6 — Film

A small film on the home page.

Kepingan, the 60-second film in the home hero. Every frame is computed from one clock using production assets, then rendered to video. It is silent, loops without a cut, and stops when out of view. Reduced motion and data saver show the poster only. The rocket is in the vehicle gallery, the giant milkfish in the fauna gallery.

Short film Kepingan: Bit flies into space to return a blue block, and Oyen the cat stows away.
  • Meteor
  • The piece
  • The giant S, before its dot returns
  • The ringed planet, rings off
Open one frame of the film

04.7 — Your moment clip

Your moment clip

Pick a place and a time of day, then download a silent six-second video. It is made entirely on your device: nothing is uploaded or saved.

04.8 — Motion rules

Motion rules.

Before adding motion to production, check keyboard access, narrow screens, both themes, reduced motion, interruptions, and repeated playback.

  1. 01

    Feet do not slide

    Step phase follows distance, not time. Faster travel swings the feet faster with the same stride length.

  2. 02

    Body follows, head lags

    Contact → down → passing → up. Arms oppose the legs; head and antenna follow a moment later.

  3. 03

    Vehicles have mass

    Lean on acceleration, dip on braking, bounce with suspension. Planes take off and land gradually; they never hover still.

  4. 04

    One main action

    Bit acts, Oyen reacts afterward, and the background yields. Idle includes genuine rest.

  5. 05

    Stop when unseen

    The motion clock stops outside the viewport, in hidden tabs, and while paused. Unmounting removes listeners and animation frames.

  6. 06

    Meaningful reduced motion

    Use a static pose that still conveys the action. Device preferences always override local simulation.

No React, motion, Lottie, or WASM runtime: Svelte computes poses and springs, renders SVG, and uses transform and opacity.