Entrances JS behaviour

Stagger list

A list or grid whose items arrive from below on a stepped delay — a 22px rise, a soft blur and a two-degree skew on the soft spring; IntersectionObserver starts it, the step slider (30–220ms) retunes the cadence live and replay sends the wave again.

Documentation

Real scenarios

The component as it is used in a product — not a specimen grid.

Release notes that arrive in waves

Meridian 2.4’s eight features enter one after another from below — a 22px rise, a soft blur and a two-degree skew settling on the repo’s soft spring. The step slider retunes the cadence live; replay sends the whole wave again. The stagger lives on the item, so joined Persian never breaks.

  • Realtime cursors New

    See every teammate’s pointer, name and selection — live, at 60fps.

  • Offline drafts Improved

    Keep writing on the plane; edits merge cleanly when you land.

  • Command palette v2 New

    Fuzzy search across actions, pages and recent files — under 40ms.

  • Version timeline Improved

    Scrub any frame back through its history and restore a range.

  • Focus mode New

    One click hides every panel and mutes notifications for 50 minutes.

  • Shared components Improved

    Library edits now propagate to all 120+ templates in seconds.

  • Audit log export Fixed

    SOC-2 friendly CSV export of every workspace event.

  • Theme sync Fixed

    Light and dark themes follow the OS again, frame-accurate.

rise 22px · blur 6px · skewY -2° · --nx-spring-soft · once per view

Important props

Important props
Prop Type Default What it does
step ms 80 The delay step between items; a 30–220ms slider whose effect shows on the very next replay.
from transform '22px · blur(6px) · -2deg' Each item’s starting pose: below, slightly blurred, a hair skewed — the feel of arrival speed.
easing spring '--nx-spring-soft' The repo’s standard soft spring at 700ms; a smooth landing without bounce.
trigger observer 'IO 0.2 · once' Starts when 20% of the list is visible and only once per view; nothing animates off screen.
replay method () Toggles the entrance class off and back on two frames later, replaying the wave without a reload.

Snippet

<ul class="wv-list" x-data="{
        on: false, io: null,
        init() {
            this.io = new IntersectionObserver((e) => {
                if (e[0].isIntersecting) { this.on = true; this.io.disconnect(); }
            }, { threshold: 0.2 });
            this.io.observe(this.$refs.list);
        },
        destroy() { this.io?.disconnect(); },
        wave() {
            this.on = false;
            requestAnimationFrame(() => requestAnimationFrame(() => (this.on = true)));
        },
    }" x-ref="list" :data-in="on" :style="'--wv-step: 80ms'">
    <li class="wv-item" style="--i: 0"><b>Realtime cursors</b><p>Every teammate’s pointer, live.</p></li>
    <li class="wv-item" style="--i: 1"><b>Offline drafts</b><p>Write on the plane, merge on landing.</p></li>
    <li class="wv-item" style="--i: 2"><b>Command palette v2</b><p>Fuzzy search under 40ms.</p></li>
    <button type="button" x-on:click="wave()">Send the wave again</button>
</ul>

<style>
.wv-list { display: grid; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.wv-item { display: grid; gap: .2rem; padding: .95rem 1rem; border: 1px solid #e7e5e4;
           border-radius: .95rem; background: #fff;
           opacity: 0; translate: 0 22px; filter: blur(6px); transform: skewY(-2deg);
           transition: opacity .7s var(--nx-spring-soft), translate .7s var(--nx-spring-soft),
                       filter .7s var(--nx-spring-soft), transform .7s var(--nx-spring-soft); }
.wv-list[data-in='true'] .wv-item { opacity: 1; translate: 0 0; filter: blur(0); transform: skewY(0);
           transition-delay: calc(var(--i) * var(--wv-step)); }
</style>
// app/Pages/ReleaseNotes.jsx — Inertia (React) page; renders the React
// snippet below unchanged, with Inertia's Link wired into the provider.
import { Link } from '@inertiajs/react';
import { NabuXUIProvider } from '@nabuxai/ui-react';
import ReleaseList from '@/components/ReleaseList';

export default function ReleaseNotes() {
  return (
    <NabuXUIProvider locale="en" linkComponent={Link}>
      <main className="nx-page">
        <ReleaseList step={80} />
      </main>
    </NabuXUIProvider>
  );
}
// ReleaseList.jsx — release notes that arrive in waves
import { useEffect, useRef, useState } from 'react';
import '@nabuxai/ui-core/css';

const ITEMS = [
  { id: 'cursors', title: 'Realtime cursors', desc: 'Every teammate’s pointer, live at 60fps.' },
  { id: 'drafts', title: 'Offline drafts', desc: 'Write on the plane; merge cleanly on landing.' },
  { id: 'palette', title: 'Command palette v2', desc: 'Fuzzy search across everything, under 40ms.' },
  { id: 'timeline', title: 'Version timeline', desc: 'Scrub any frame back through its history.' },
];

export default function ReleaseList({ step = 80 }) {
  const [on, setOn] = useState(false);
  const listRef = useRef(null);

  // Two frames off → on: the pure-CSS wave replays without a remount.
  const wave = () => {
    setOn(false);
    requestAnimationFrame(() => requestAnimationFrame(() => setOn(true)));
  };

  useEffect(() => {
    const io = new IntersectionObserver(([e]) => {
      if (e.isIntersecting) { setOn(true); io.disconnect(); }
    }, { threshold: 0.2 });
    io.observe(listRef.current);
    return () => io.disconnect();
  }, []);

  return (
    <>
      <style>{`
        .wv-list { --wv-step: ${step}ms; display: grid; gap: .6rem; list-style: none; margin: 0; padding: 0;
                   grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .wv-item { display: grid; gap: .2rem; padding: .95rem 1rem; border: 1px solid #e7e5e4;
                   border-radius: .95rem; background: #fff;
                   opacity: 0; translate: 0 22px; filter: blur(6px); transform: skewY(-2deg);
                   transition: opacity .7s var(--nx-spring-soft), translate .7s var(--nx-spring-soft),
                               filter .7s var(--nx-spring-soft), transform .7s var(--nx-spring-soft); }
        .wv-list[data-in='true'] .wv-item { opacity: 1; translate: 0 0; filter: blur(0); transform: skewY(0);
                   transition-delay: calc(var(--i) * var(--wv-step)); }
        .wv-btn { justify-self: start; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
                  border: 1px solid #e7e5e4; background: #fff; font: 700 .8rem/1 inherit; }
        @media (prefers-reduced-motion: reduce) {
          .wv-item { opacity: 1; translate: 0 0; filter: none; transform: none; transition: none; }
        }
      `}</style>
      <ul className="wv-list" data-in={on} ref={listRef}>
        {ITEMS.map((it, i) => (
          <li className="wv-item" style={{ '--i': i }} key={it.id}>
            <b>{it.title}</b>
            <p>{it.desc}</p>
          </li>
        ))}
      </ul>
      <button type="button" className="wv-btn" onClick={wave}>Send the wave again</button>
    </>
  );
}
<!-- ReleaseList.vue — release notes that arrive in waves -->
<script setup lang="ts">
import { onBeforeUnmount, onMounted, ref } from 'vue';
import '@nabuxai/ui-core/css';

const items = [
  { id: 'cursors', title: 'Realtime cursors', desc: 'Every teammate’s pointer, live at 60fps.' },
  { id: 'drafts', title: 'Offline drafts', desc: 'Write on the plane; merge cleanly on landing.' },
  { id: 'palette', title: 'Command palette v2', desc: 'Fuzzy search across everything, under 40ms.' },
  { id: 'timeline', title: 'Version timeline', desc: 'Scrub any frame back through its history.' },
];
const on = ref(false);
const list = ref<HTMLElement | null>(null);
let io: IntersectionObserver | null = null;

// Two frames off → on: the pure-CSS wave replays without a remount.
const wave = () => {
  on.value = false;
  requestAnimationFrame(() => requestAnimationFrame(() => (on.value = true)));
};

onMounted(() => {
  io = new IntersectionObserver(([e]) => {
    if (e.isIntersecting) { on.value = true; io?.disconnect(); }
  }, { threshold: 0.2 });
  io.observe(list.value!);
});
onBeforeUnmount(() => io?.disconnect());
</script>

<template>
  <ul ref="list" class="wv-list" :data-in="on" :style="'--wv-step: 80ms'">
    <li v-for="(it, i) in items" :key="it.id" class="wv-item" :style="`--i: ${i}`">
      <b>{{ it.title }}</b>
      <p>{{ it.desc }}</p>
    </li>
  </ul>
  <button type="button" class="wv-btn" @click="wave">Send the wave again</button>
</template>

<style scoped>
.wv-list { display: grid; gap: .6rem; list-style: none; margin: 0; padding: 0;
           grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wv-item { display: grid; gap: .2rem; padding: .95rem 1rem; border: 1px solid #e7e5e4;
           border-radius: .95rem; background: #fff;
           opacity: 0; translate: 0 22px; filter: blur(6px); transform: skewY(-2deg);
           transition: opacity .7s var(--nx-spring-soft), translate .7s var(--nx-spring-soft),
                       filter .7s var(--nx-spring-soft), transform .7s var(--nx-spring-soft); }
.wv-list[data-in='true'] .wv-item { opacity: 1; translate: 0 0; filter: blur(0); transform: skewY(0);
           transition-delay: calc(var(--i) * var(--wv-step)); }
.wv-btn { justify-self: start; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
          border: 1px solid #e7e5e4; background: #fff; font: 700 .8rem/1 inherit; }
@media (prefers-reduced-motion: reduce) {
  .wv-item { opacity: 1; translate: 0 0; filter: none; transform: none; transition: none; }
}
</style>
<!-- ReleaseList.svelte — release notes that arrive in waves -->
<script lang="ts">
  import { onMount } from 'svelte';
  import '@nabuxai/ui-core/css';

  let { step = 80 } = $props();
  const items = [
    { id: 'cursors', title: 'Realtime cursors', desc: 'Every teammate’s pointer, live at 60fps.' },
    { id: 'drafts', title: 'Offline drafts', desc: 'Write on the plane; merge cleanly on landing.' },
    { id: 'palette', title: 'Command palette v2', desc: 'Fuzzy search across everything, under 40ms.' },
    { id: 'timeline', title: 'Version timeline', desc: 'Scrub any frame back through its history.' },
  ];
  let on = $state(false);
  let list: HTMLElement;
  let io: IntersectionObserver | null = null;

  // Two frames off → on: the pure-CSS wave replays without a remount.
  const wave = () => {
    on = false;
    requestAnimationFrame(() => requestAnimationFrame(() => (on = true)));
  };

  onMount(() => {
    io = new IntersectionObserver(([e]) => {
      if (e.isIntersecting) { on = true; io?.disconnect(); }
    }, { threshold: 0.2 });
    io.observe(list);
    return () => io?.disconnect();
  });
</script>

<ul bind:this={list} class="wv-list" data-in={on} style="--wv-step: {step}ms">
  {#each items as it, i (it.id)}
    <li class="wv-item" style="--i: {i}">
      <b>{it.title}</b>
      <p>{it.desc}</p>
    </li>
  {/each}
</ul>
<button type="button" class="wv-btn" onclick={wave}>Send the wave again</button>

<style>
.wv-list { display: grid; gap: .6rem; list-style: none; margin: 0; padding: 0;
           grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wv-item { display: grid; gap: .2rem; padding: .95rem 1rem; border: 1px solid #e7e5e4;
           border-radius: .95rem; background: #fff;
           opacity: 0; translate: 0 22px; filter: blur(6px); transform: skewY(-2deg);
           transition: opacity .7s var(--nx-spring-soft), translate .7s var(--nx-spring-soft),
                       filter .7s var(--nx-spring-soft), transform .7s var(--nx-spring-soft); }
.wv-list[data-in='true'] .wv-item { opacity: 1; translate: 0 0; filter: blur(0); transform: skewY(0);
           transition-delay: calc(var(--i) * var(--wv-step)); }
.wv-btn { justify-self: start; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
          border: 1px solid #e7e5e4; background: #fff; font: 700 .8rem/1 inherit; }
@media (prefers-reduced-motion: reduce) {
  .wv-item { opacity: 1; translate: 0 0; filter: none; transform: none; transition: none; }
}
</style>