BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/motiq/animated-list

Animated List

motiq/animated-list
FreeComponent

A semantic list whose items fade/slide in with a stagger and animate out cleanly on removal, with layout-based reordering. Requires stable keys. Reduced-motion safe.

Live preview

live · rendered by the registry
Rendered by motiq on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://www.motiq.dev/r/animated-list.json

Source

registry/creative/animated-list.tsxwww.motiq.dev/r/animated-list.json
1"use client";
2
3import * as React from "react";
4import { AnimatePresence, motion, useReducedMotion } from "motion/react";
5
6import { cn } from "@/lib/utils";
7
8export interface AnimatedListProps
9 extends React.HTMLAttributes<HTMLUListElement> {
10 /** Milliseconds of stagger applied to entering items, by DOM order. */
11 stagger?: number;
12}
13
14/**
15 * AnimatedList — a semantic `<ul>` whose `<li>` children fade/slide in with a
16 * stagger and animate out cleanly when removed.
17 *
18 * Usage: pass keyed children (each `AnimatedListItem` needs a stable `key`) so
19 * AnimatePresence can track add/remove. `layout` handles reordering.
20 *
21 * Accessibility: it stays a real list (`<ul>`/`<li>`), so list semantics and
22 * keyboard focus are preserved; exit animation does not steal focus. Under
23 * `prefers-reduced-motion` items appear/leave instantly. Clean-room original.
24 */
25export function AnimatedList({
26 stagger = 60,
27 className,
28 children,
29 ...props
30}: AnimatedListProps) {
31 // Provide the stagger to items via context so index-based delay works even
32 // when consumers wrap items.
33 return (
34 <StaggerContext.Provider value={stagger}>
35 <ul className={cn("flex flex-col gap-2", className)} {...props}>
36 <AnimatePresence initial={false}>{children}</AnimatePresence>
37 </ul>
38 </StaggerContext.Provider>
39 );
40}
41
42const StaggerContext = React.createContext<number>(60);
43
44export interface AnimatedListItemProps
45 extends React.LiHTMLAttributes<HTMLLIElement> {
46 /** Position in the list, used to stagger the entrance. */
47 index?: number;
48}
49
50export const AnimatedListItem = React.forwardRef<
51 HTMLLIElement,
52 AnimatedListItemProps
53>(({ index = 0, className, children, ...props }, ref) => {
54 const reduce = useReducedMotion();
55 const stagger = React.useContext(StaggerContext);
56 const delay = reduce ? 0 : (index * stagger) / 1000;
57
58 return (
59 <motion.li
60 ref={ref}
61 layout={reduce ? false : "position"}
62 initial={reduce ? false : { opacity: 0, y: 10 }}
63 animate={{ opacity: 1, y: 0 }}
64 exit={reduce ? { opacity: 0 } : { opacity: 0, y: -8, scale: 0.98 }}
65 transition={{ duration: reduce ? 0 : 0.26, ease: [0.2, 0, 0, 1], delay }}
66 className={cn(
67 "rounded-xl border border-[var(--color-border,#e4e7ec)]",
68 "bg-[var(--color-surface,#fff)] px-4 py-3 text-sm text-[var(--color-fg,#111318)]",
69 "[will-change:transform,opacity]",
70 className,
71 )}
72 {...(props as React.ComponentProps<typeof motion.li>)}
73// … truncated

What it pulls in

npm packages

  • motion

Other registry items

  • https://motiq.dev/r/utils.json

Files it writes

  • registry/creative/animated-list.tsx

Facts

Registry
motiq
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-12
Last confirmed
today

Go to the source

Docs on motiq www.motiq.dev RMahammad/motiq on GitHub Raw registry item This item as JSON

More from motiq

All 100 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Activity Streamactivity-streammotiqComponentsFree1 dep
Adaptive Safe-Zone Gridadaptive-safe-zone-gridmotiqComponentsFreeno deps
Agent Run Timelineagent-run-timelinemotiqComponentsFree1 dep
AI Response Streamai-response-streammotiqComponentsFree1 dep
Animated Accordionanimated-accordionmotiqComponentsFree2 deps
Animated Buttonanimated-buttonmotiqComponentsFree1 dep
Animated Dialoganimated-dialogmotiqComponentsFree2 deps
Animated Gridanimated-gridmotiqComponentsFree2 deps
BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex