Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Collections

  • QuestionCard
  • Table
  • Book3D
  • ProTable
  • PricingTable
  • JsonViewer
  • EditableTable
  • List
  • Descriptions
  • RowActions
  • Tree
  • Card
  • Carousel
  • Video
  • Audio
  • BentoGrid
  • Image
  • MagicCard
  • AnimatedList
  • Marquee
  • Sortable
  • Kanban
  • DesignCanvas
  • LayerTree
  • StageDraw
  • SlideDeck
  • PresenterView
  • ComponentPicker
  • EventStream
  • QueueLane
  • DocumentSheet
  • Novel reader
  • Scheduler
  • Org classroom
  • Danmaku
  • LiveChat
  • LivePlayer
  • LogViewer
  • FileTree
  • CodeReviewThread
  • VirtualList
  • InfiniteScroll
  • LogoLoop
  • BounceCards
  • CardSwap
  • ChromaGrid
  • CircularGallery
  • DomeGallery
  • FlyingPosters
  • InfiniteMenu
  • MagicBento
  • ScrollStack
  • ProfileCard
  • TiltedCard
  • PixelCard
  • DecayCard
  • ReflectiveCard
  • Folder

Charts and Diagrams

  • Flow
  • Diagram
  • Paper
  • SequenceDiagram
  • Sankey
  • Sparkline
  • Funnel
  • Treemap
  • Gantt
  • Heatmap
  • ContributionGraph
  • Legend
  • Chart
  • WorldMap

Information

  • ImageViewer
  • LiveProductCard
  • DiffStat
  • ScoreRing
  • ScoreScale
  • Badge
  • Dot
  • StatusDot
  • Chip
  • FilterChip
  • Coupon
  • Tag
  • Annotation
  • Avatar
  • AvatarCircles
  • User
  • QRCode
  • Comment
  • RelativeTime
  • GitCommit
  • DeployStatus
  • ShieldBadge
  • AwardBadge
  • CreditCard
  • IconTile

Metrics

  • Stat
  • Statistic
  • Meter
  • Timeline
  • NumberTicker

Placeholders

  • Empty
  • Skeleton
  • Watermark

AnimatedList

animated-list

Reveals child items sequentially with fade-and-rise motion on viewport entry.

Usage

Basic usage

The sub-items fade in and move up into the field one by one, and are triggered when entering the viewport (once).

New Order¥128 · Just now
Payment successful¥99 · 1 minute ago
New review★★★★★ · 3 minutes ago
New Follower@hulian · 5 minutes ago
tsx
<AnimatedList>
  <Row t="New Order" d="¥128 · Just" />
  <Row t="Payment successful" d="¥99 · 1 minute ago" />
  <Row t="New review" d="★★★★★ · 3 minutes ago" />
  <Row t="New Fan" d="@hulian · 5 minutes ago" />
</AnimatedList>

Adjust the entry interval (stagger)

stagger Controls the delay (seconds) for adjacent sub-items to enter. The larger the delay, the more "staggered" it is.

New Order¥128 · Just now
Payment successful¥99 · 1 minute ago
New review★★★★★ · 3 minutes ago
tsx
<AnimatedList stagger={0.4}>
  <Row t="New Order" d="¥128 · Just" />
  <Row t="Payment successful" d="¥99 · 1 minute ago" />
  <Row t="New review" d="★★★★★ · 3 minutes ago" />
</AnimatedList>

When to use

Use AnimatedList to give notifications, feeds, or feature rows a staggered entrance. Prefer a static list when the animation adds no value. Use Sortable when users need to reorder items.

Import

ts
import { AnimatedList } from "@hulianui/ui"

Props

NameTypeDefaultDescription
staggernumber0.15Delay between adjacent entries in seconds.
classNamestring-Container class name.

Slots

SlotTypeDescription
childrenReactNodeEntries animated in render order.

Example

tsx
<AnimatedList className="w-72">
  <Row t="New order" d="$128 · just now" />
  <Row t="Payment received" d="$99 · 1 minute ago" />
  <Row t="New review" d="★★★★★ · 3 minutes ago" />
</AnimatedList>

Usage notes

  • Viewport entry is client-side. Offscreen children remain initially hidden, so use care for SSR-critical first-screen content.
  • Children enter as soon as any part is visible (amount: "some"), so lists inside containers that clip them with overflow still appear. Up to 0.74.1 they needed 40% in view and stayed blank when clipped.
  • Dynamic insertion changes stagger order; every child needs a stable key.

Related

Table · Book3D · ProTable · PricingTable · JsonViewer · EditableTable

PreviousMagicCardData DisplayNextMarquee

On this page

  • Usage
  • Documentation
    • When to use
    • Import
    • Props
    • Slots
    • Example
    • Usage notes
    • Related