cue
Animation for any web page, added with one attribute.
Entrances, hover effects and moving backgrounds, in your brand's colours and its own personality. Accessible by default, a 2 KB core, and nothing to install but a script tag.
Copy it into your site
cue init -dir static/cue # the core and every effect, recorded in cue.lock
cue verify # the copy still matches cue.lock
cue diff # what a newer cue would change
cue update # move to it
The files are copied in, not loaded from anyone else's server, and cue.lock keeps each one's version and SHA-256, so an edit never gets lost in an update. cue init -effects rise,glow copies only those; cue add tilt or cue add bundle adds more later.
Add it to any page
<link rel="stylesheet" href="/cue/cue.css">
<script type="module" src="/cue/cue.js"></script>
Or one file, cue.bundle.min.js, as a plain script: for WordPress, Shopify, Webflow or anything that can't serve modules. Go templates, Laravel, React or hand-written HTML: if it outputs a web page, cue works on it.
Then animate anything
<section data-cue="fade-up">…</section>
<h2 data-cue="reveal-box" data-cue-color="accent">…</h2>
<div class="card" data-cue="fade-up" data-cue-hover="tilt lift spotlight">…</div>
<header data-cue-bg="glow">…</header>
Three kinds of movement
- EntrancesThings arriving as they scroll into view, or on load, hover or click. One attribute on any element, at any level of nesting.
data-cue· 12 effects - HoverResponses to the pointer and to keyboard focus. Their own attribute, so they combine with an entrance and with each other.
data-cue-hover· 5 effects - BackgroundsMovement behind a section's content. Paused by the pause button, in hidden tabs and while off-screen; still frames with motion off.
data-cue-bg· 6 effects
What it promises
- Any HTML
- No framework, no build step, no kit required. One attribute on any element, at any depth.
- Accessible
- Reduced motion means nothing moves. Loops have a pause button. Screen readers get whole sentences. Without JavaScript, everything shows.
- Tiny and fast
- A 2 KB core that loads only the effects a page uses. Transform and opacity only, so no layout shift and no hit to LCP.
- Your brand's personality
- Pace and feel set how a site moves, from its brand in Clients, the same as its Design previews and Motion videos.