Cards JS behaviour

Stacked scroll cards

Big cards that stick over one another as the page scrolls; the covered ones shrink, lean back and dim — made for step-by-step storytelling.

Real scenarios

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

The four-step setup guide

Scroll: each card sticks over the previous one — the covered card shrinks, leans back and dims, so the reader always knows how far they have come. The last card’s artwork is a slot.

  1. 01

    Invite the team

    One link, any email — teammates land in the right workspace with their roles already set.

  2. 02

    Connect the channels

    WhatsApp, Telegram and the web chat join the same inbox in a couple of clicks.

  3. 03

    Teach the agent

    Drop in your docs and past replies; the agent learns the tone and the answers.

  4. 04

    Go live

    Flip the switch — from this message on, Nabu answers first and a human is one click away.

A compact two-card stack

top, offset and height decide where the first card sticks, how much lower each next one sits and how tall they are — here a shorter pair for a page fold.

  1. 01

    What counts as a conversation?

    Every thread that reaches an answer — the counter rolls as they do.

  2. 02

    Can I pay yearly?

    Yes — two months on the house. The invoice block even prints.

Important props

Important props
Prop Type Default What it does
items array [] Item keys: title, description, eyebrow (the card number by default), tone (lapis | violet | cyan | gold or any colour), cover (a CSS background), image, alt.
top / offset / height string null Where the first card sticks, how much lower each next one sticks, and the card height — any CSS length.
slot‌های هم‌نام آیتم slot — A slot named after an item key fills that card’s artwork panel with any content.
titleAs string h3 The heading tag of card titles — for the right outline on your page.

Snippet

<x-nx::stacked-scroll-cards top="1.5rem" height="min(24rem, 64svh)" :items="[
    'invite' => ['title' => 'تیم را دعوت کنید', 'description' => '…', 'tone' => 'lapis', 'cover' => $art['lapis']],
    'train' => ['title' => 'ایجنت را آموزش دهید', 'description' => '…', 'tone' => 'gold', 'cover' => $art['gold']],
]">
    <x-slot:live><div>…محتوای دلخواه پنل تصویر…</div></x-slot:live>
</x-nx::stacked-scroll-cards>