Motion

How things move over time: a blooming flower loader, kinetic text, a marquee, and shimmer. Motion is opt in, never baked into a part. Each one reads only tokens, is plain HTML and CSS first, then React, and has a calm version that goes still for anyone who asks their device for reduced motion.

See what people who ask their device for reduced motion will see: nothing moves, and nothing is lost.

Blooming flower loader

A loader that opens petal by petal around a seeded center. The word Loading carries the meaning, so the flower can simply be lovely. Its color follows the theme accent unless you give it one.

Calm version: the flower rests fully open, and the word Loading stays.

Loading

ReadyAny website, Shopify, WordPress, Square, plain hosting

<link rel="stylesheet" href="tokens.css">
<link rel="stylesheet" href="base.css">
<link rel="stylesheet" href="motion.css">

<!-- Blooming flower loader. The words carry the meaning; the flower is decoration.
     Color: set --prism-bloom-color (defaults to the theme accent). Size: add prism-bloom--sm or --lg.
     More than one on a page in different colors? Give each its own id in the gradient names. -->
<div class="prism-bloom" role="status" style="--prism-bloom-color: #E9A6C2">
  <svg class="prism-bloom__art" viewBox="0 0 200 200" aria-hidden="true" focusable="false">
    <defs>
      <linearGradient id="bloom1-pg" gradientUnits="userSpaceOnUse" x1="100" y1="102" x2="100" y2="20"><stop offset="0" class="prism-bloom__g1"/><stop offset=".55" class="prism-bloom__g2"/><stop offset="1" class="prism-bloom__g3"/></linearGradient>
      <linearGradient id="bloom1-pg2" gradientUnits="userSpaceOnUse" x1="100" y1="101" x2="100" y2="45"><stop offset="0" class="prism-bloom__h1"/><stop offset="1" class="prism-bloom__h2"/></linearGradient>
      <filter id="bloom1-sh" x="-40%" y="-40%" width="180%" height="180%"><feDropShadow dx="0" dy="1.4" stdDeviation="1.7" flood-color="#200914" flood-opacity=".4"/></filter>
    </defs>
    <g class="prism-bloom__core">
      <circle class="prism-bloom__disc" cx="100" cy="100" r="15.5"/>
      <circle class="prism-bloom__seed" cx="100" cy="100" r="1.5"/>
      <circle class="prism-bloom__seed" cx="97.7" cy="102.1" r="1.5"/>
      <circle class="prism-bloom__seed" cx="100.4" cy="95.6" r="1.5"/>
      <circle class="prism-bloom__seed" cx="103.3" cy="104.3" r="1.5"/>
      <circle class="prism-bloom__seed" cx="93.9" cy="98.9" r="1.5"/>
      <circle class="prism-bloom__seed" cx="105.8" cy="96.3" r="1.5"/>
      <circle class="prism-bloom__seed" cx="98" cy="107.3" r="1.5"/>
      <circle class="prism-bloom__seed" cx="96.2" cy="92.7" r="1.5"/>
      <circle class="prism-bloom__seed" cx="108.2" cy="103" r="1.5"/>
      <circle class="prism-bloom__seed" cx="91.4" cy="103.5" r="1.5"/>
      <circle class="prism-bloom__seed" cx="104.2" cy="91.1" r="1.5"/>
      <circle class="prism-bloom__seed" cx="103.1" cy="109.8" r="1.5"/>
      <circle class="prism-bloom__seed" cx="90.7" cy="94.6" r="1.5"/>
      <circle class="prism-bloom__seed" cx="110.9" cy="97.6" r="1.5"/>
      <circle class="prism-bloom__seed" cx="93.3" cy="109.5" r="1.5"/>
      <circle class="prism-bloom__seed" cx="98.5" cy="88.1" r="1.5"/>
      <circle class="prism-bloom__seed" cx="109.5" cy="108" r="1.5"/>
      <circle class="prism-bloom__seed" cx="87.2" cy="100.5" r="1.5"/>
      <circle class="prism-bloom__seed" cx="109.3" cy="90.7" r="1.5"/>
      <circle class="prism-bloom__seed" cx="99.4" cy="113.5" r="1.5"/>
      <circle class="prism-bloom__seed" cx="91.1" cy="89.4" r="1.5"/>
      <circle class="prism-bloom__seed" cx="114.1" cy="101.9" r="1.5"/>
    </g>
    <g>
      <g transform="rotate(0 100 100)"><g class="prism-bloom__petal" style="--i:0;--r:0" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,102 C79,80 77,44 100,20 C123,44 121,80 100,102 Z" fill="url(#bloom1-pg)"/><path class="prism-bloom__vein" d="M100,100 Q99,62 100,28" stroke-width="0.8" opacity="0.35"/><path class="prism-bloom__vein" d="M100,78 Q94,66 92,52" stroke-width="0.6" opacity="0.22"/><path class="prism-bloom__vein" d="M100,78 Q106,66 108,52" stroke-width="0.6" opacity="0.22"/></g></g>
      <g transform="rotate(45 100 100)"><g class="prism-bloom__petal" style="--i:1;--r:0" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,102 C79,80 77,44 100,20 C123,44 121,80 100,102 Z" fill="url(#bloom1-pg)"/><path class="prism-bloom__vein" d="M100,100 Q99,62 100,28" stroke-width="0.8" opacity="0.35"/><path class="prism-bloom__vein" d="M100,78 Q94,66 92,52" stroke-width="0.6" opacity="0.22"/><path class="prism-bloom__vein" d="M100,78 Q106,66 108,52" stroke-width="0.6" opacity="0.22"/></g></g>
      <g transform="rotate(90 100 100)"><g class="prism-bloom__petal" style="--i:2;--r:0" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,102 C79,80 77,44 100,20 C123,44 121,80 100,102 Z" fill="url(#bloom1-pg)"/><path class="prism-bloom__vein" d="M100,100 Q99,62 100,28" stroke-width="0.8" opacity="0.35"/><path class="prism-bloom__vein" d="M100,78 Q94,66 92,52" stroke-width="0.6" opacity="0.22"/><path class="prism-bloom__vein" d="M100,78 Q106,66 108,52" stroke-width="0.6" opacity="0.22"/></g></g>
      <g transform="rotate(135 100 100)"><g class="prism-bloom__petal" style="--i:3;--r:0" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,102 C79,80 77,44 100,20 C123,44 121,80 100,102 Z" fill="url(#bloom1-pg)"/><path class="prism-bloom__vein" d="M100,100 Q99,62 100,28" stroke-width="0.8" opacity="0.35"/><path class="prism-bloom__vein" d="M100,78 Q94,66 92,52" stroke-width="0.6" opacity="0.22"/><path class="prism-bloom__vein" d="M100,78 Q106,66 108,52" stroke-width="0.6" opacity="0.22"/></g></g>
      <g transform="rotate(180 100 100)"><g class="prism-bloom__petal" style="--i:4;--r:0" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,102 C79,80 77,44 100,20 C123,44 121,80 100,102 Z" fill="url(#bloom1-pg)"/><path class="prism-bloom__vein" d="M100,100 Q99,62 100,28" stroke-width="0.8" opacity="0.35"/><path class="prism-bloom__vein" d="M100,78 Q94,66 92,52" stroke-width="0.6" opacity="0.22"/><path class="prism-bloom__vein" d="M100,78 Q106,66 108,52" stroke-width="0.6" opacity="0.22"/></g></g>
      <g transform="rotate(225 100 100)"><g class="prism-bloom__petal" style="--i:5;--r:0" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,102 C79,80 77,44 100,20 C123,44 121,80 100,102 Z" fill="url(#bloom1-pg)"/><path class="prism-bloom__vein" d="M100,100 Q99,62 100,28" stroke-width="0.8" opacity="0.35"/><path class="prism-bloom__vein" d="M100,78 Q94,66 92,52" stroke-width="0.6" opacity="0.22"/><path class="prism-bloom__vein" d="M100,78 Q106,66 108,52" stroke-width="0.6" opacity="0.22"/></g></g>
      <g transform="rotate(270 100 100)"><g class="prism-bloom__petal" style="--i:6;--r:0" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,102 C79,80 77,44 100,20 C123,44 121,80 100,102 Z" fill="url(#bloom1-pg)"/><path class="prism-bloom__vein" d="M100,100 Q99,62 100,28" stroke-width="0.8" opacity="0.35"/><path class="prism-bloom__vein" d="M100,78 Q94,66 92,52" stroke-width="0.6" opacity="0.22"/><path class="prism-bloom__vein" d="M100,78 Q106,66 108,52" stroke-width="0.6" opacity="0.22"/></g></g>
      <g transform="rotate(315 100 100)"><g class="prism-bloom__petal" style="--i:7;--r:0" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,102 C79,80 77,44 100,20 C123,44 121,80 100,102 Z" fill="url(#bloom1-pg)"/><path class="prism-bloom__vein" d="M100,100 Q99,62 100,28" stroke-width="0.8" opacity="0.35"/><path class="prism-bloom__vein" d="M100,78 Q94,66 92,52" stroke-width="0.6" opacity="0.22"/><path class="prism-bloom__vein" d="M100,78 Q106,66 108,52" stroke-width="0.6" opacity="0.22"/></g></g>
    </g>
    <g>
      <g transform="rotate(22.5 100 100)"><g class="prism-bloom__petal" style="--i:0;--r:1" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,101 C89,86 88,58 100,45 C112,58 111,86 100,101 Z" fill="url(#bloom1-pg2)"/></g></g>
      <g transform="rotate(67.5 100 100)"><g class="prism-bloom__petal" style="--i:1;--r:1" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,101 C89,86 88,58 100,45 C112,58 111,86 100,101 Z" fill="url(#bloom1-pg2)"/></g></g>
      <g transform="rotate(112.5 100 100)"><g class="prism-bloom__petal" style="--i:2;--r:1" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,101 C89,86 88,58 100,45 C112,58 111,86 100,101 Z" fill="url(#bloom1-pg2)"/></g></g>
      <g transform="rotate(157.5 100 100)"><g class="prism-bloom__petal" style="--i:3;--r:1" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,101 C89,86 88,58 100,45 C112,58 111,86 100,101 Z" fill="url(#bloom1-pg2)"/></g></g>
      <g transform="rotate(202.5 100 100)"><g class="prism-bloom__petal" style="--i:4;--r:1" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,101 C89,86 88,58 100,45 C112,58 111,86 100,101 Z" fill="url(#bloom1-pg2)"/></g></g>
      <g transform="rotate(247.5 100 100)"><g class="prism-bloom__petal" style="--i:5;--r:1" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,101 C89,86 88,58 100,45 C112,58 111,86 100,101 Z" fill="url(#bloom1-pg2)"/></g></g>
      <g transform="rotate(292.5 100 100)"><g class="prism-bloom__petal" style="--i:6;--r:1" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,101 C89,86 88,58 100,45 C112,58 111,86 100,101 Z" fill="url(#bloom1-pg2)"/></g></g>
      <g transform="rotate(337.5 100 100)"><g class="prism-bloom__petal" style="--i:7;--r:1" filter="url(#bloom1-sh)"><path class="prism-bloom__shape" d="M100,101 C89,86 88,58 100,45 C112,58 111,86 100,101 Z" fill="url(#bloom1-pg2)"/></g></g>
    </g>
    <g class="prism-bloom__eye">
      <circle class="prism-bloom__disc" cx="100" cy="100" r="12.5"/>
      <circle class="prism-bloom__seed" cx="100" cy="100" r="1.4"/>
      <circle class="prism-bloom__seed" cx="97.7" cy="102.1" r="1.4"/>
      <circle class="prism-bloom__seed" cx="100.4" cy="95.6" r="1.4"/>
      <circle class="prism-bloom__seed" cx="103.3" cy="104.3" r="1.4"/>
      <circle class="prism-bloom__seed" cx="93.9" cy="98.9" r="1.4"/>
      <circle class="prism-bloom__seed" cx="105.8" cy="96.3" r="1.4"/>
      <circle class="prism-bloom__seed" cx="98" cy="107.3" r="1.4"/>
      <circle class="prism-bloom__seed" cx="96.2" cy="92.7" r="1.4"/>
      <circle class="prism-bloom__seed" cx="108.2" cy="103" r="1.4"/>
      <circle class="prism-bloom__seed" cx="91.4" cy="103.5" r="1.4"/>
      <circle class="prism-bloom__seed" cx="104.2" cy="91.1" r="1.4"/>
      <circle class="prism-bloom__seed" cx="103.1" cy="109.8" r="1.4"/>
      <circle class="prism-bloom__seed" cx="90.7" cy="94.6" r="1.4"/>
    </g>
  </svg>
  <span class="prism-bloom__label">Loading<span class="prism-bloom__dots" aria-hidden="true"></span></span>
</div>

Kinetic text

Words that arrive with a little life, for a hero line or a moment worth marking. It plays once and settles, so nobody reads a moving target. Screen readers hear the plain sentence.

Calm version: the words are simply there, already in place.

Build once, skin many.

ReadyAny website, Shopify, WordPress, Square, plain hosting

<link rel="stylesheet" href="tokens.css">
<link rel="stylesheet" href="base.css">
<link rel="stylesheet" href="motion.css">

<!-- Words rise in one by one, once. Without the script it is plain text, so nothing is lost. -->
<h2 class="prism-kinetic" data-kinetic>Build once, skin many.</h2>

<!-- Or a light that sweeps across twice and rests, all within 5 seconds. -->
<h2 class="prism-kinetic prism-kinetic--gradient">Prism DSX</h2>

<script>
  // Splits each line into words. Screen readers hear the whole line, read once.
  document.querySelectorAll("[data-kinetic]").forEach((el) => {
    const text = el.textContent.trim();
    const words = text.split(/\s+/);
    el.innerHTML = "";
    const sr = document.createElement("span");
    sr.className = "prism-visually-hidden";
    sr.textContent = text;
    const shown = document.createElement("span");
    shown.setAttribute("aria-hidden", "true");
    words.forEach((w, i) => {
      const s = document.createElement("span");
      s.className = "prism-kinetic__word";
      s.style.setProperty("--i", i);
      s.textContent = w;
      shown.append(s, i < words.length - 1 ? " " : "");
    });
    el.append(sr, shown);
  });
</script>

Marquee

A row that drifts sideways, for logos, services, or a short list worth browsing. It always has a Pause button, and it rests while you hover or move focus into it. The list is read once, not twice.

Calm version: the row stands still and wraps, so every item shows at once, and the Pause button goes away.

  • Brand identity
  • Websites
  • Design systems
  • Shopify stores
  • Apps
  • Motion
  • Accessibility

ReadyAny website, Shopify, WordPress, Square, plain hosting

<link rel="stylesheet" href="tokens.css">
<link rel="stylesheet" href="base.css">
<link rel="stylesheet" href="motion.css">

<section class="prism-marquee" aria-label="Featured">
  <div class="prism-marquee__viewport">
    <div class="prism-marquee__track">
      <ul class="prism-marquee__list">
        <li class="prism-marquee__item">Brand identity</li>
        <li class="prism-marquee__item">Websites</li>
        <li class="prism-marquee__item">Design systems</li>
        <li class="prism-marquee__item">Shopify stores</li>
        <li class="prism-marquee__item">Apps</li>
      </ul>
      <!-- The same list again, so the loop is seamless. Hidden from screen readers and the keyboard. -->
      <ul class="prism-marquee__list" aria-hidden="true" inert>
        <li class="prism-marquee__item">Brand identity</li>
        <li class="prism-marquee__item">Websites</li>
        <li class="prism-marquee__item">Design systems</li>
        <li class="prism-marquee__item">Shopify stores</li>
        <li class="prism-marquee__item">Apps</li>
      </ul>
    </div>
  </div>
  <button type="button" class="prism-marquee__toggle">Pause<span class="prism-visually-hidden"> featured scrolling</span></button>
</section>

<script>
  // Anything that moves longer than 5 seconds needs a way to stop it.
  document.querySelectorAll(".prism-marquee").forEach((m) => {
    const btn = m.querySelector(".prism-marquee__toggle");
    const word = btn.firstChild;
    btn.addEventListener("click", () => {
      const paused = m.classList.toggle("is-paused");
      word.textContent = paused ? "Play" : "Pause";
    });
  });
</script>

Shimmer

Two kinds. A glint across a button that crosses twice and rests, to draw the eye once without nagging. And a skeleton: the shape of content on its way, so the page does not jump when it lands.

Calm version: the button is plain, and the skeleton is a still outline.

Loading your profile

ReadyAny website, Shopify, WordPress, Square, plain hosting

<link rel="stylesheet" href="tokens.css">
<link rel="stylesheet" href="base.css">
<link rel="stylesheet" href="motion.css">

<!-- Shimmer button: a glint crosses twice, then rests. It plays again on hover or keyboard focus. -->
<button type="button" class="prism-btn prism-btn--primary prism-shimmer">Get started</button>

<!-- Skeleton: the shape of content on its way. Say what is loading. -->
<div class="prism-skeleton" role="status">
  <span class="prism-visually-hidden">Loading your profile</span>
  <div class="prism-skeleton__row" aria-hidden="true">
    <span class="prism-skeleton__block prism-skeleton__block--circle"></span>
    <div class="prism-skeleton__col">
      <span class="prism-skeleton__block prism-skeleton__block--title"></span>
      <span class="prism-skeleton__block prism-skeleton__block--short"></span>
    </div>
  </div>
  <div class="prism-skeleton__col" aria-hidden="true">
    <span class="prism-skeleton__block"></span>
    <span class="prism-skeleton__block"></span>
    <span class="prism-skeleton__block prism-skeleton__block--short"></span>
  </div>
</div>