Pull to Refresh
HTML to video · A camera move · Apache-2.0
- What it does
A mobile list pulls through nonlinear rubber-band resistance, arms at a threshold, commits to a bounded loading indicator, then snaps exactly back to rest.
- Get it
Copy it, or
npx hyperframes add pull-to-refresh, to compositions/components/pull-to-refresh.html and mount it as a sub-composition; it brings its own timeline. 2 settings to change.- Needs
Loads its libraries from the network when it renders (cdn.jsdelivr.net).
- Re-skin
By props (colors, type)
Declared variables: pullDistance, spinnerStyle. Colors and type come from theme custom properties with fallbacks (--bg, --border, --brand, --fg, --font-body, --font-display, 8 in all), so a :root block or one of the three themes re-skins it.
- License
Apache-2.0
- From