Docs
From two files to a playing icon.
The pack is one ES module, a motion map, and the SVGs. No build step — this page goes from an empty folder to an icon that plays on hover (or install the free set straight from npm). Licence and refunds: the licence page.
01 · Install
The package arrives with your licence key and holds the runtime
(src/cuetra-motion.js, 9.5 KB), the sound engine
(src/cuetra-sonic.js, loads only when you ask), the stylesheet, the
motion map and the kinetic SVGs.
- Copy
src/and thepack/folder into the project. - Serve the page over http — ES modules do not load from
file://. - Import the runtime and call
init()once.
02 · Show an icon
Every kinetic SVG carries all four treatments in one file; the visible layer is
the icon's data-treatment. Give a container
data-cuetra-icon and data-icon, and the runtime binds
hover, press and keyboard focus.
<button data-cuetra-icon data-icon="bell" aria-label="Notifications">
<!-- the bell SVG goes inside: inline it, or inject with a fetch -->
</button>
import { init } from "./src/cuetra-motion.js";
await init({ mapUrl: "pack/motion.json", pace: "ui" });
The runtime resolves .cuetra-kinetic inside every bound container
and plays the icon named by data-icon. Treatments switch per icon at
any time: setTreatment(svg, "glass").
03 · Motion and pace
pace: "ui" moves an icon in 240–420 ms — the pace you ship in a
working interface. pace: "showcase" stretches the same authored plan so
it can be watched, which is what this site uses. Icons play on hover, press and
keyboard focus; spring-coupled parts end exactly at rest.
04 · Sound
Every icon carries a synthesised voice — no audio files to preload. Sound starts
muted; the masthead toggle (or any data-cuetra-sound-toggle button)
owns it, and the choice persists. Under reduced motion nothing animates and nothing
sounds: sound is part of motion, not a separate channel.