Skip to content
Español

Navigate

Type to search. Press Escape to close.

    Explore

    Effects gallery

    Ten effects that ship with iVOLT, each one running on its own page. They are CSS classes, sometimes with a small optional module, and all of them hold still when the system asks for reduced motion: try the “Reduced motion” switch on each stage.

    CSS: effects.css, surfaces.css, text.css, motion.css (all in ivolt.css). Reduced motion: respected by all of them.

    Glowing borders and aurora

    Light that lives on the edge of a surface. Documentation.

    Glowing borders and aurorafixtures/surfaces/glow.htmlOpen alone — Glowing borders and aurora
    <div class="iv-stack iv-u-gap-6" id="surfaces-glow">
      <h2 class="iv-gradient-text iv-u-m-0">Light that follows the edge</h2>
      <div class="iv-grid iv-grid--auto iv-u-gap-4">
        <article class="iv-card iv-glow">
          <div class="iv-card__body">
            <h3 class="iv-card__title">Glowing border</h3>
            <p class="iv-u-text-muted iv-u-m-0">Sample content, not a real product. A masked conic gradient draws the 1px ring. On hover or focus the angle turns for six seconds and a halo in <code>--iv-glow-primary</code> appears; the ring stays still when the browser has no animatable custom properties, or when motion is reduced.</p>
          </div>
          <div class="iv-card__footer">
            <a class="iv-button iv-button--ghost iv-button--sm" href="#surfaces-glass">Back to glass</a>
          </div>
        </article>
        <article class="iv-card iv-elevate">
          <div class="iv-card__body">
            <h3 class="iv-card__title">Elevation on hover</h3>
            <p class="iv-u-text-muted iv-u-m-0">Sample content, not a real product. <code>iv-elevate</code> lifts the card by four pixels and swaps in the deepest shadow. With reduced motion the lift is dropped and only the shadow changes.</p>
          </div>
          <div class="iv-card__footer">
            <a class="iv-button iv-button--ghost iv-button--sm" href="#surfaces-textures">Back to textures</a>
          </div>
        </article>
      </div>
      <p class="iv-u-m-0"><a class="iv-button iv-button--primary iv-shine" href="#surfaces-glass">Sweep the light across me</a></p>
    </div>

    Edges that follow the pointer

    Move close to a card and its border lights up where you are; a glint travels along another. Documentation.

    Edges that follow the pointerfixtures/effects/edges.htmlOpen alone — Edges that follow the pointer
    <section id="effects-edges" class="iv-stack iv-u-gap-6" style="padding: clamp(2rem, 6vw, 4rem); border-radius: var(--iv-radius-lg); background-color: var(--iv-color-surface)">
      <p class="iv-u-m-0">Made-up cards, for the fixture only. Hover the first card to send a glint around its border; move the pointer near the second one to light the edge closest to you. The proximity glow needs JavaScript and a fine pointer: with a touch screen, or with scripting off, the cards keep their plain border.</p>
      <div class="iv-grid iv-grid--auto iv-u-gap-6">
        <article class="iv-card iv-edge-glint">
          <div class="iv-card__body">
            <span class="iv-badge iv-badge--primary">Glint</span>
            <h3 class="iv-card__title">A spark runs the border</h3>
            <p class="iv-u-m-0">Sample content, not a real product. <code>iv-edge-glint</code> sweeps a lit segment once around the border on hover, on focus inside, and when <code>Reveal</code> marks the card as seen.</p>
          </div>
          <div class="iv-card__footer">
            <a class="iv-button iv-button--ghost iv-button--sm" href="#effects-edges">Back to the top of the fixture</a>
          </div>
        </article>
        <article class="iv-card iv-edge-near">
          <div class="iv-card__body">
            <span class="iv-badge iv-badge--info">Proximity</span>
            <h3 class="iv-card__title">The edge follows the pointer</h3>
            <p class="iv-u-m-0">Sample content, not a real product. <code>iv-edge-near</code> plus the <code>Proximity</code> component light the border where the pointer is, and fade it out over the last 160&nbsp;pixels.</p>
          </div>
          <div class="iv-card__footer">
            <a class="iv-button iv-button--ghost iv-button--sm" href="#effects-edges">Back to the top of the fixture</a>
          </div>
        </article>
        <article class="iv-card iv-edge-glint iv-edge-near">
          <div class="iv-card__body">
            <span class="iv-badge iv-badge--success">Both</span>
            <h3 class="iv-card__title">Glint and proximity together</h3>
            <p class="iv-u-m-0">Sample content, not a real product. The two effects use different pseudo-elements, so one card can carry both: the glint answers the hover, the halo answers the distance.</p>
          </div>
          <div class="iv-card__footer">
            <a class="iv-button iv-button--ghost iv-button--sm" href="#effects-edges">Back to the top of the fixture</a>
          </div>
        </article>
      </div>
    </section>

    Glass

    Frosted panels with a solid fallback where backdrop-filter is missing. Documentation.

    Glassfixtures/surfaces/glass.htmlOpen alone — Glass
    <section class="iv-texture-mesh" id="surfaces-glass" style="padding: var(--iv-space-10); border-radius: var(--iv-radius-lg)">
      <div class="iv-grid iv-grid--auto iv-u-gap-4">
        <article class="iv-card iv-glass">
          <div class="iv-card__body">
            <span class="iv-badge iv-badge--info">Frosted</span>
            <h3 class="iv-card__title">Glass over a gradient mesh</h3>
            <p class="iv-u-m-0">Sample content, not a real product. <code>iv-glass</code> replaces the card background with the glass tokens and blurs what sits behind it. Where <code>backdrop-filter</code> is missing, the card falls back to an opaque surface.</p>
          </div>
          <div class="iv-card__footer">
            <a class="iv-button iv-button--ghost iv-button--sm" href="#surfaces-textures">Textures</a>
            <a class="iv-button iv-button--primary iv-button--sm" href="#surfaces-glow">Glow</a>
          </div>
        </article>
        <article class="iv-card iv-glass iv-glass--strong">
          <div class="iv-card__body">
            <span class="iv-badge iv-badge--primary">Strong</span>
            <h3 class="iv-card__title">More opacity, more blur</h3>
            <p class="iv-u-m-0">Sample content, not a real product. <code>iv-glass--strong</code> raises the tint and the blur radius, for panels that carry long text or form controls.</p>
          </div>
          <div class="iv-card__footer">
            <a class="iv-button iv-button--ghost iv-button--sm" href="#surfaces-textures">Textures</a>
            <a class="iv-button iv-button--primary iv-button--sm" href="#surfaces-glow">Glow</a>
          </div>
        </article>
        <article class="iv-card iv-glass iv-texture-grain">
          <div class="iv-card__body" style="position: relative">
            <span class="iv-badge">Grain</span>
            <h3 class="iv-card__title">Glass with film grain</h3>
            <p class="iv-u-m-0">Sample content, not a real product. <code>iv-texture-grain</code> adds an inline SVG noise overlay in soft light; the body carries <code>position: relative</code> so the text stays above it.</p>
          </div>
          <div class="iv-card__footer">
            <a class="iv-button iv-button--ghost iv-button--sm" href="#surfaces-textures">Textures</a>
            <a class="iv-button iv-button--primary iv-button--sm" href="#surfaces-glow">Glow</a>
          </div>
        </article>
      </div>
    </section>

    Text that rises

    Headline lines that rise one after another as they enter the view. Documentation.

    Text that risesfixtures/text/reveal.htmlOpen alone — Text that rises
    <section id="text-reveal" data-iv-component="reveal" class="iv-stack iv-u-gap-8">
      <p class="iv-u-m-0 iv-u-max-w-measure">Sample copy for the fixture. Each line of the headline below is a mask; the span inside it starts one line lower and rises when <code>Reveal</code> marks the heading with <code>data-iv-inview</code>. The author writes the line breaks: no script splits the text, so it stays selectable, translatable and readable exactly as it was served. Without JavaScript, and under <code>prefers-reduced-motion: reduce</code>, every line is already up.</p>
    
      <h2 class="iv-text-reveal iv-u-m-0" style="font-size: var(--iv-text-4xl); line-height: var(--iv-leading-tight); letter-spacing: var(--iv-tracking-tight)" data-iv-reveal>
        <span class="iv-text-reveal__line"><span>The interface</span></span>
        <span class="iv-text-reveal__line" style="--iv-i: 1"><span>starts here.</span></span>
      </h2>
    
      <div class="iv-stack iv-u-gap-4 iv-u-py-12" style="min-block-size: 90vh">
        <h3 class="iv-u-m-0">Filler, so the next headline arrives on scroll</h3>
        <p class="iv-u-m-0 iv-u-max-w-measure">The first heading is above the fold and reveals as soon as the observer reports it. The second one is below, and waits.</p>
        <p class="iv-u-m-0 iv-u-max-w-measure">More filler. Sample copy for the fixture, with no claim of any kind.</p>
      </div>
    
      <h2 class="iv-text-reveal iv-u-m-0" style="font-size: var(--iv-text-4xl); line-height: var(--iv-leading-tight); letter-spacing: var(--iv-tracking-tight); --iv-text-reveal-step: 110ms" data-iv-reveal>
        <span class="iv-text-reveal__line"><span>Four lines,</span></span>
        <span class="iv-text-reveal__line" style="--iv-i: 1"><span>one after another,</span></span>
        <span class="iv-text-reveal__line" style="--iv-i: 2"><span><span class="iv-gradient-text">staggered</span> by the index</span></span>
        <span class="iv-text-reveal__line" style="--iv-i: 3"><span>the author served.</span></span>
      </h2>
    
      <p class="iv-u-m-0 iv-u-max-w-measure iv-u-py-12">The stagger is <code>--iv-i</code> multiplied by <code>--iv-text-reveal-step</code>, both plain custom properties: there is no JavaScript timer behind them.</p>
    </section>
    .iv-root {
      --iv-i: 1;
      --iv-text-reveal-step: 110ms;
    }
    // data-iv-component="reveal"
    {
      reveal: true,
    }

    A band of light

    A highlight crosses a line of display type. Documentation.

    A band of lightfixtures/text/shimmer.htmlOpen alone — A band of light
    <section id="text-shimmer" data-iv-component="reveal" class="iv-stack iv-u-gap-8">
      <p class="iv-u-m-0 iv-u-max-w-measure">Sample copy for the fixture. <code>.iv-text-shimmer</code> clips a gradient to the glyphs and moves only its position, so a band of light crosses the line and nothing repaints outside it. Do not combine it with <code>.iv-gradient-text</code>: both own the same background, so pick one. The band is the primary of the theme, not the accent: it replaces the colour of the glyph while it passes, and it has to stay readable the whole way across.</p>
    
      <h2 class="iv-text-shimmer iv-u-m-0" style="font-size: var(--iv-text-4xl); line-height: var(--iv-leading-tight); letter-spacing: var(--iv-tracking-tight)">A band of light crosses the line</h2>
    
      <h3 class="iv-u-m-0">Once, when it arrives</h3>
      <p class="iv-u-m-0 iv-u-max-w-measure">The heading below carries <code>--once</code> and <code>data-iv-reveal</code>: it waits, still, until <code>Reveal</code> marks it as in view, runs the band across a single time and stays put. A loop next to running text would compete with the reading.</p>
    
      <div class="iv-u-py-12" style="min-block-size: 90vh">
        <p class="iv-u-m-0 iv-u-max-w-measure">Filler, so the heading below starts out of view.</p>
      </div>
    
      <h2 class="iv-text-shimmer iv-text-shimmer--once iv-u-m-0" style="font-size: var(--iv-text-4xl); line-height: var(--iv-leading-tight); letter-spacing: var(--iv-tracking-tight)" data-iv-reveal>One pass, then still</h2>
    
      <p class="iv-u-m-0 iv-u-max-w-measure iv-u-py-12">Under <code>prefers-reduced-motion: reduce</code> the band is parked off the glyphs, so the line keeps its own colour and its contrast. In forced colours the gradient is dropped entirely.</p>
    </section>
    // data-iv-component="reveal"
    {
      reveal: true,
    }

    Glowing type

    Type that emits its own colour, steady or pulsing. Documentation.

    Glowing typefixtures/text/glow.htmlOpen alone — Glowing type
    <section id="text-glow" class="iv-stack iv-u-gap-8">
      <p class="iv-u-m-0 iv-u-max-w-measure">Sample copy for the fixture. <code>.iv-text-glow</code> is two layers of <code>text-shadow</code> around the glyphs: a tight one that thickens the strokes and a wide one that spills onto the surface behind. The colour is the halo token of the theme, so it changes with light and dark.</p>
    
      <h2 class="iv-text-glow iv-u-m-0" style="font-size: var(--iv-text-4xl); line-height: var(--iv-leading-tight); letter-spacing: var(--iv-tracking-tight)">Voltage in the type</h2>
    
      <h2 class="iv-text-glow iv-text-glow--pulse iv-u-m-0" style="font-size: var(--iv-text-4xl); line-height: var(--iv-leading-tight); letter-spacing: var(--iv-tracking-tight)">And the same line, breathing</h2>
    
      <p class="iv-u-m-0 iv-u-max-w-measure">The pulse runs for 2.4&nbsp;seconds and repeats; under <code>prefers-reduced-motion: reduce</code> it stops at the glow itself. In forced colours the shadow is dropped and the heading is plain system text.</p>
    
      <div class="iv-card iv-texture-mesh">
        <div class="iv-card__body iv-stack iv-u-gap-4 iv-u-py-10">
          <h3 class="iv-text-glow iv-u-m-0" style="font-size: var(--iv-text-3xl); line-height: var(--iv-leading-tight); letter-spacing: var(--iv-tracking-tight); --iv-text-glow-color: var(--iv-glow-secondary); --iv-text-glow-size: 0.7em">Over a gradient surface</h3>
          <p class="iv-u-m-0 iv-u-max-w-measure">Both <code>--iv-text-glow-color</code> and <code>--iv-text-glow-size</code> are public locals; here the halo is the secondary one and a little wider.</p>
        </div>
      </div>
    
      <p class="iv-u-m-0 iv-u-max-w-measure iv-u-text-sm iv-u-text-muted">A halo is a finish, not a contrast device: the glyph itself keeps the contrast of the theme, and the glow only adds presence around it.</p>
    </section>
    .iv-root {
      --iv-text-glow-color: var(--iv-glow-secondary);
      --iv-text-glow-size: 0.7em;
    }

    Marquee

    An endless row that pauses under the pointer and becomes a scrollable row under reduced motion. Documentation.

    Marqueefixtures/motion/marquee.htmlOpen alone — Marquee
    <section id="motion-marquee" class="iv-stack iv-u-gap-10">
      <p class="iv-u-m-0 iv-u-max-w-measure">Sample copy for the fixture. A marquee is pure CSS: the author writes the items twice and hides the copy from assistive technology, so the track is exactly two loops wide and a translation of &minus;50&nbsp;% is seamless. It pauses under the pointer and while anything inside it holds focus, and under <code>prefers-reduced-motion: reduce</code> it stops and becomes a scrollable row — which is why the author serves <code>tabindex="0"</code>, a role and a label on the window, exactly as the horizontal timeline does. The names below are real tokens of this framework.</p>
    
      <div class="iv-marquee iv-marquee--fade" role="group" tabindex="0" aria-label="Design tokens" style="--iv-marquee-duration: 24s">
        <div class="iv-marquee__track">
          <span class="iv-marquee__item iv-badge"><code>--iv-color-primary</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-color-accent</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-space-6</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-radius-lg</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-shadow-ambient</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-glow-primary</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-focus-halo</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-tracking-tight</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-motion-slow</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-ease-out</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-color-primary</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-color-accent</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-space-6</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-radius-lg</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-shadow-ambient</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-glow-primary</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-focus-halo</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-tracking-tight</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-motion-slow</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-ease-out</code></span>
        </div>
      </div>
    
      <div class="iv-stack iv-u-gap-4">
        <h3 class="iv-u-m-0">Reversed, and in display type</h3>
        <p class="iv-u-m-0 iv-u-max-w-measure">Same markup, <code>--reverse</code> added and a slower duration. The separators are decoration and are hidden from assistive technology.</p>
      </div>
    
      <div class="iv-marquee iv-marquee--reverse iv-marquee--fade" role="group" tabindex="0" aria-label="Parts of the framework" style="--iv-marquee-duration: 36s; --iv-marquee-gap: var(--iv-space-4)">
        <div class="iv-marquee__track">
          <span class="iv-marquee__item" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)">Tokens</span>
          <span class="iv-marquee__item iv-u-text-muted" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">/</span>
          <span class="iv-marquee__item iv-gradient-text" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)">Layers</span>
          <span class="iv-marquee__item iv-u-text-muted" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">/</span>
          <span class="iv-marquee__item" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)">Fixtures</span>
          <span class="iv-marquee__item iv-u-text-muted" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">/</span>
          <span class="iv-marquee__item iv-gradient-text" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)">Contracts</span>
          <span class="iv-marquee__item iv-u-text-muted" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">/</span>
          <span class="iv-marquee__item" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)">Utilities</span>
          <span class="iv-marquee__item iv-u-text-muted" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">/</span>
          <span class="iv-marquee__item iv-gradient-text" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)">Components</span>
          <span class="iv-marquee__item iv-u-text-muted" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">/</span>
          <span class="iv-marquee__item" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">Tokens</span>
          <span class="iv-marquee__item iv-u-text-muted" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">/</span>
          <span class="iv-marquee__item iv-gradient-text" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">Layers</span>
          <span class="iv-marquee__item iv-u-text-muted" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">/</span>
          <span class="iv-marquee__item" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">Fixtures</span>
          <span class="iv-marquee__item iv-u-text-muted" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">/</span>
          <span class="iv-marquee__item iv-gradient-text" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">Contracts</span>
          <span class="iv-marquee__item iv-u-text-muted" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">/</span>
          <span class="iv-marquee__item" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">Utilities</span>
          <span class="iv-marquee__item iv-u-text-muted" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">/</span>
          <span class="iv-marquee__item iv-gradient-text" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">Components</span>
          <span class="iv-marquee__item iv-u-text-muted" style="font-size: var(--iv-text-3xl); letter-spacing: var(--iv-tracking-tight)" aria-hidden="true">/</span>
        </div>
      </div>
    
      <div class="iv-stack iv-u-gap-4">
        <h3 class="iv-u-m-0">Vertical, inside a panel</h3>
        <p class="iv-u-m-0 iv-u-max-w-measure">The vertical variant needs a height of its own: <code>--iv-marquee-size</code> gives it one, and the edge mask turns to the block axis on its own.</p>
      </div>
    
      <div class="iv-card" style="max-inline-size: 22rem">
        <div class="iv-card__body">
          <div class="iv-marquee iv-marquee--vertical iv-marquee--fade" role="group" tabindex="0" aria-label="Parts of the framework, vertically" style="--iv-marquee-duration: 20s; --iv-marquee-size: 11rem; --iv-marquee-gap: var(--iv-space-4)">
            <div class="iv-marquee__track">
          <span class="iv-marquee__item iv-u-text-lg">Tokens</span>
          <span class="iv-marquee__item iv-u-text-lg">Layers</span>
          <span class="iv-marquee__item iv-u-text-lg">Fixtures</span>
          <span class="iv-marquee__item iv-u-text-lg">Contracts</span>
          <span class="iv-marquee__item iv-u-text-lg">Utilities</span>
          <span class="iv-marquee__item iv-u-text-lg">Components</span>
          <span class="iv-marquee__item iv-u-text-lg" aria-hidden="true">Tokens</span>
          <span class="iv-marquee__item iv-u-text-lg" aria-hidden="true">Layers</span>
          <span class="iv-marquee__item iv-u-text-lg" aria-hidden="true">Fixtures</span>
          <span class="iv-marquee__item iv-u-text-lg" aria-hidden="true">Contracts</span>
          <span class="iv-marquee__item iv-u-text-lg" aria-hidden="true">Utilities</span>
          <span class="iv-marquee__item iv-u-text-lg" aria-hidden="true">Components</span>
            </div>
          </div>
        </div>
      </div>
    
      <div class="iv-stack iv-u-gap-4">
        <h3 class="iv-u-m-0">With a link inside</h3>
        <p class="iv-u-m-0 iv-u-max-w-measure">Focus the link with the keyboard: the track stops while the focus is inside it, so a name can be read and acted on. The link points at the fixture itself and does nothing else.</p>
      </div>
    
      <div class="iv-marquee iv-marquee--fade" role="group" tabindex="0" aria-label="Design tokens, with a link" style="--iv-marquee-duration: 26s">
        <div class="iv-marquee__track">
          <span class="iv-marquee__item"><a href="#motion-marquee">Back to the top of this fixture</a></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-color-primary</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-color-accent</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-space-6</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-radius-lg</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-shadow-ambient</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-glow-primary</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-focus-halo</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-tracking-tight</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-motion-slow</code></span>
          <span class="iv-marquee__item iv-badge"><code>--iv-ease-out</code></span>
          <span class="iv-marquee__item" aria-hidden="true"><a href="#motion-marquee" tabindex="-1">Back to the top of this fixture</a></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-color-primary</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-color-accent</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-space-6</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-radius-lg</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-shadow-ambient</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-glow-primary</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-focus-halo</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-tracking-tight</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-motion-slow</code></span>
          <span class="iv-marquee__item iv-badge" aria-hidden="true"><code>--iv-ease-out</code></span>
        </div>
      </div>
    </section>
    .iv-root {
      --iv-marquee-duration: 24s;
      --iv-marquee-gap: var(--iv-space-4);
      --iv-marquee-size: 11rem;
    }

    Stacked cards

    Cards that stack as you scroll, on CSS scroll-driven animations. Documentation.

    Stacked cardsfixtures/motion/stack.htmlOpen alone — Stacked cards
    <section id="motion-stack" class="iv-stack iv-u-gap-8">
      <p class="iv-u-m-0 iv-u-max-w-measure">Sample copy for the fixture. Each card sticks one step lower than the one before it, so the deck reads as a deck. Where the engine has scroll-driven animations each card shrinks and dims exactly while the next one rides over it (the deck serves <code>--iv-stack-count</code> and every card its <code>--iv-i</code>); where it does not, the stack is still a stack and nothing is lost. The text of the cards describes this project.</p>
    
      <div class="iv-stack-cards" style="--iv-stack-top: var(--iv-space-6); --iv-stack-count: 4">
        <section class="iv-stack-cards__card iv-card" style="--iv-i: 0">
          <div class="iv-card__body iv-stack iv-u-gap-4 iv-u-py-8">
            <div class="iv-cluster"><span class="iv-badge iv-badge--primary">01</span></div>
            <h3 class="iv-card__title iv-u-m-0" style="font-size: var(--iv-text-2xl); letter-spacing: var(--iv-tracking-tight)">Contracts first</h3>
            <p class="iv-u-m-0 iv-u-max-w-measure">Every family of this framework is written as a contract before a line of it is implemented: markup, classes, options, events, accessibility and what is out of scope.</p>
          </div>
        </section>
        <section class="iv-stack-cards__card iv-card" style="--iv-i: 1">
          <div class="iv-card__body iv-stack iv-u-gap-4 iv-u-py-8">
            <div class="iv-cluster"><span class="iv-badge iv-badge--primary">02</span></div>
            <h3 class="iv-card__title iv-u-m-0" style="font-size: var(--iv-text-2xl); letter-spacing: var(--iv-tracking-tight)">One grammar</h3>
            <p class="iv-u-m-0 iv-u-max-w-measure">Classes start with <code>iv-</code>, custom properties with <code>--iv-</code>, attributes with <code>data-iv-</code> and events with <code>iv:</code>. Nothing else is allowed in.</p>
          </div>
        </section>
        <section class="iv-stack-cards__card iv-card" style="--iv-i: 2">
          <div class="iv-card__body iv-stack iv-u-gap-4 iv-u-py-8">
            <div class="iv-cluster"><span class="iv-badge iv-badge--primary">03</span></div>
            <h3 class="iv-card__title iv-u-m-0" style="font-size: var(--iv-text-2xl); letter-spacing: var(--iv-tracking-tight)">HTML that already works</h3>
            <p class="iv-u-m-0 iv-u-max-w-measure">The served markup is complete. JavaScript upgrades it; it never creates the thing the page is for.</p>
          </div>
        </section>
        <section class="iv-stack-cards__card iv-card" style="--iv-i: 3">
          <div class="iv-card__body iv-stack iv-u-gap-4 iv-u-py-8">
            <div class="iv-cluster"><span class="iv-badge iv-badge--primary">04</span></div>
            <h3 class="iv-card__title iv-u-m-0" style="font-size: var(--iv-text-2xl); letter-spacing: var(--iv-tracking-tight)">Motion with an argument</h3>
            <p class="iv-u-m-0 iv-u-max-w-measure">Movement is transform and opacity, it has a reason, and <code>prefers-reduced-motion</code> removes all of it while leaving the composition whole.</p>
          </div>
        </section>
      </div>
    
      <div class="iv-stack iv-u-gap-4 iv-u-py-12" style="min-block-size: 120vh">
        <h3 class="iv-u-m-0">After the deck</h3>
        <p class="iv-u-m-0 iv-u-max-w-measure">Filler, so the last card can leave the top of the window and the whole deck can be scrolled past: the shrink of a card only runs while it is on its way out.</p>
        <p class="iv-u-m-0 iv-u-max-w-measure">Under <code>prefers-reduced-motion: reduce</code> the cards keep their sticky offsets and drop the scale and the fade.</p>
      </div>
    </section>
    .iv-root {
      --iv-stack-top: var(--iv-space-6);
      --iv-stack-count: 4;
      --iv-i: 0;
    }

    Count-up figures

    Numbers that count to their value once, when they appear; the served HTML already holds the final value. Documentation.

    Count-up figuresfixtures/countup/basic.htmlOpen alone — Count-up figures
    <p class="iv-u-m-0 iv-u-mb-6">Four figures measured by <code>npm run sizes</code> and <code>npm test</code> on the
    <code>0.6.0-beta.0</code> milestone (commit <code>34e69c1</code>): they are the real numbers of the package, not a
    demonstration set. Each one is served complete, so the page reads the same without JavaScript, and counts up once when it
    reaches the viewport.</p>
    
    <div class="iv-stat-group">
      <div class="iv-stat iv-stat--card">
        <span class="iv-stat__label">Core stylesheet</span>
        <strong class="iv-stat__value iv-count" data-iv-component="countup">2.60</strong>
        <span class="iv-stat__hint">KiB min + gzip, budget 8</span>
      </div>
      <div class="iv-stat iv-stat--card">
        <span class="iv-stat__label">Full stylesheet</span>
        <strong class="iv-stat__value iv-count" data-iv-component="countup">25.64</strong>
        <span class="iv-stat__hint">KiB min + gzip, budget 40</span>
      </div>
      <div class="iv-stat iv-stat--card">
        <span class="iv-stat__label">Bundled JavaScript</span>
        <strong class="iv-stat__value iv-count" data-iv-component="countup">39.04</strong>
        <span class="iv-stat__hint">KiB min + gzip, budget 48</span>
      </div>
      <div class="iv-stat iv-stat--card">
        <span class="iv-stat__label">Unit tests</span>
        <strong class="iv-stat__value iv-count" data-iv-component="countup" data-iv-duration="1400">641</strong>
        <span class="iv-stat__hint">27 files, all passing</span>
      </div>
    </div>
    
    <p class="iv-u-text-sm iv-u-text-muted iv-u-mt-6">With <code>prefers-reduced-motion: reduce</code>, without an
    <code>IntersectionObserver</code> or without JavaScript, nothing moves: the served figure is already the answer.</p>
    // data-iv-component="countup"
    {
      duration: 1400,
    }

    Scan lines

    A beam that sweeps a surface, horizontally or vertically. Documentation.

    Scan linesfixtures/effects/scan.htmlOpen alone — Scan lines
    <section id="effects-scan" class="iv-stack iv-u-gap-6">
      <div class="iv-scan" style="min-block-size: 14rem; display: grid; align-content: end; gap: var(--iv-space-2); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--iv-radius-lg); background-image: linear-gradient(140deg, var(--iv-palette-neutral-950), var(--iv-palette-green-900) 55%, var(--iv-palette-neutral-900)); color: var(--iv-palette-neutral-0); --iv-color-surface: var(--iv-palette-neutral-800)">
        <p class="iv-u-m-0" style="font-family: var(--iv-font-mono); font-size: var(--iv-text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--iv-color-accent)">Horizontal scan</p>
        <h2 class="iv-u-m-0">A line of light crosses the block</h2>
        <p class="iv-u-m-0" style="max-inline-size: 52ch; color: color-mix(in srgb, var(--iv-palette-neutral-0) 84%, transparent)">Made-up copy, for the fixture only. <code>iv-scan</code> repeats every six seconds and stops under <code>prefers-reduced-motion</code>; it belongs on large blocks such as a hero, never on a paragraph.</p>
      </div>
      <div class="iv-scan iv-scan--v" style="min-block-size: 14rem; display: grid; align-content: end; gap: var(--iv-space-2); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--iv-radius-lg); background-image: linear-gradient(200deg, var(--iv-palette-neutral-950), var(--iv-palette-blue-600) 120%); color: var(--iv-palette-neutral-0); --iv-color-surface: var(--iv-palette-neutral-800)">
        <p class="iv-u-m-0" style="font-family: var(--iv-font-mono); font-size: var(--iv-text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--iv-color-accent)">Vertical scan</p>
        <h2 class="iv-u-m-0">The same sweep, top to bottom</h2>
        <p class="iv-u-m-0" style="max-inline-size: 52ch; color: color-mix(in srgb, var(--iv-palette-neutral-0) 84%, transparent)">Made-up copy, for the fixture only. <code>iv-scan--v</code> only swaps the direction and the keyframes; the duration stays in <code>--iv-scan-duration</code>.</p>
      </div>
      <div class="iv-cluster iv-u-gap-6" style="align-items: center; padding: var(--iv-space-6); border-radius: var(--iv-radius-lg); background-color: var(--iv-color-surface)">
        <p class="iv-u-m-0"><strong>Sparks</strong>, staggered with <code>--iv-i</code>:</p>
        <span class="iv-cluster iv-u-gap-4" style="align-items: center">
          <span class="iv-spark" style="--iv-i: 0" aria-hidden="true"></span>
          <span class="iv-spark" style="--iv-i: 1" aria-hidden="true"></span>
          <span class="iv-spark" style="--iv-i: 2" aria-hidden="true"></span>
        </span>
        <p class="iv-u-m-0"><strong>Breathing halo</strong> for a status indicator:</p>
        <span class="iv-badge iv-badge--success iv-pulse-glow">Nominal (sample)</span>
      </div>
    </section>
    .iv-root {
      --iv-color-surface: var(--iv-palette-neutral-800);
      --iv-i: 0;
    }