Skip to content

Clockwork 1.5.0 — Motion

Choose a tag to compare

@keco216 keco216 released this 09 Aug 21:40
· 59 commits to main since this release

Clockwork moves now — deliberately, and never against your settings.

V11 is a motion pass. The interface already borrowed HeroUI's surfaces,
geometry and states; this release closes the gap on its micro-interactions.
Every value below was read out of the shipped CSS of @heroui/styles@3.2.4,
not from a blog post, and every claim is measured by a script that ships with
the repo.

What moves

What Time Where the value comes from
Language popover opens / closes 150 / 100 ms select.css [data-entering] / [data-exiting]
Chevron on the select 150 ms, 180° .select__indicator
Chevron on the two disclosures 250 ms, 180° .disclosure__indicator
Checkmark in the list 250 ms, from scale(.7) .menu-item__indicator
List row pressed 250 ms, scale(.98) .list-box-item:active
Disclosures (height + opacity) 250 ms, spring .disclosure__content
Message lines 150 ms opacity / 250 ms height .field-error
Spinner while the passphrase is stretched 750 ms, linear --animate-spin-fast
Copy label swap 250 ms, from 8 px + scale(.8) slot-value-in
Scroll edges on rail and popover 150 ms scroll-shadow.css
Header steps aside (phone only) 250 ms, spring the browser toolbar, not HeroUI

All of it honours prefers-reduced-motion — and node scripts/check-motion.mjs proves it: 25 assertions on the running app,
including one pass with reduced motion in which nothing is allowed to run.

Two layout fixes

  • The footer sits at the bottom of the window when the page is shorter
    than the viewport. It used to float mid-screen with bare ground below it —
    there simply was no sticky-footer mechanism, and nobody had noticed since
    the device casing was dropped in v1.3.0.
  • On a phone the header steps out of the way as you scroll down and comes
    back the moment you scroll up. Three lines of header on an 812 px screen is
    a tenth of the height, permanently spent on something you read once.

Under the hood

  • <details> was going to animate in pure CSS (interpolate-size +
    ::details-content). Measured, then rejected: those need Chrome 129/131,
    and the Android wrapper guarantees WebView 111. Between 111 and 130 the CSS
    version pops with no fallback. The Web Animations path runs everywhere and
    carries the message lines and the copy label too.
  • Two long-standing bugs surfaced while measuring: the language popover ran
    two entrance animations at once (the second one animating from the wrong
    direction, left over from before v1.3.0), and two nested disclosure chevrons
    rotated at different speeds.
  • scripts/check-tokens.mjs now also refuses hard-coded durations and easing
    curves, not just spacing, colours and radii.

Numbers, all measured

Tests 517
dist/clockwork.html 801 kB decimal = 783 KiB, gzip 331 kB
Partial builds de,en 481 kB · en 473 kB · de,en,fr 490 kB
Contrast pairs on painted pixels 94, plus 2 self-tests
Motion assertions 25
Compositor layers at rest, 8 accounts 18 (unchanged since v1.2.0)
Lighthouse desktop 100 / 100 / 100 / 100, CLS 0.001
Runtime network requests 0

Android

clockwork.apk is signed with the same key as v1.4.0 (certificate SHA-256
1685316f…aa53), R8-minified, versionCode 10500. Verified on the emulator:
codes recomputed independently in Node and matched, no INTERNET
permission
in the package, both camera features declared optional.

Check the download before installing:

sha256sum -c clockwork.apk.sha256

Update rule: Android only accepts an update signed with the same key as
the installed app. An APK signed with any other key — including one you build
yourself from source — requires uninstalling first, and uninstalling deletes
the app's data, including a vault stored on that device
(INSTALL_FAILED_UPDATE_INCOMPATIBLE is what you will see). If you switch
between the released APK and a self-built one, unlock the vault and copy your
entries out of the input field first.

Assets

  • clockwork.html — the single file, all 37 languages, open it with a double click
  • clockwork-de-en.html — the same, German and English only
  • clockwork.apk + .sha256 — signed Android build