Kousthubha Yadiyala

Animated List

Cards

About

Animated List UI

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Animated List to your project and fits it to your theme.

Code

How Animated List is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client"

import { AnimatedList } from "@/components/ui/animated-list"
import { useState, useEffect } from "react"

const NOTIFICATIONS = [
  "Alice just joined",
  "New message from Bob", 
  "Your upload is complete",
  "Carol started following you",
  "Deploy succeeded",
]

export default function AnimatedListDemo() {
  const [items, setItems] = useState<string[]>([])

  useEffect(() => {
    let i = 0
    const id = setInterval(() => {
      if (i >= NOTIFICATIONS.length) { clearInterval(id); return }
      setItems(prev => [NOTIFICATIONS[i], ...prev].slice(0, 4))
      i++
    }, 800)
    return () => clearInterval(id)
  }, [])

  return (
    <div className="flex items-center justify-center min-h-screen bg-background p-8">
      <div className="w-full max-w-sm space-y-0">
        <AnimatedList
          items={items}
          renderItem={(item) => (
            <div className="px-4 py-3 mb-2 rounded-lg border border-border bg-card text-card-foreground text-sm">
              {item}
            </div>
          )}
        />
      </div>
    </div>
  )
}

Dependencies

More by Kousthubha Yadiyala

View all
  • Morphing Card Stack

    Morphing Card Stack

    1.8K
  • Animated Menu

    Animated Menu

    603
  • Circular Command Menu

    Circular Command Menu

    466
  • Fluid Dropdown

    Fluid Dropdown

    421
  • Trello Kanban Board

    Trello Kanban Board

    317
  • Real time Analytics

    Real time Analytics

    287
  • Shatter Button

    Shatter Button

    276
  • Action Searchbar

    Action Searchbar

    221

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    33
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    264
  • Statistics Card 10

    Statistics Card 10

    263
  • Card

    Card

    17
  • Card Studio

    Card Studio

    9
  • The Item one

    The Item one

    3