Animated List

Animated list with animated items

  • JS

    John Smith

    Liked your post about React performance

    2 minutes ago

  • EM

    Emma Martinez

    Commented on your repository

    5 minutes ago

  • AJ

    Alex Johnson

    Started following you

    12 minutes ago

  • SK

    Sarah Kim

    Mentioned you in a comment

    18 minutes ago

  • MB

    Michael Brown

    Shared your article

    25 minutes ago

Customize

Duration
0.4
Item Gap
12
Fade Edge Size
80
Auto Add Delay (ms)
2000
Max Items
10

Props

21
itemsAnimatedListItem[]

Array of items to display with id and content

Default[]
durationnumber

Duration of item animation in seconds

Default0.4
easing[number, number, number, number]

Animation easing function as cubic bezier values

Default[0.25, 0.46, 0.45, 0.94]
autoAddDelaynumber

Delay between auto-adding items in ms (0 to disable)

Default2000
maxItemsnumber

Maximum number of items to display

Default10
startFrom"top" | "center" | "bottom"

Starting position of list items

Default"center"
animationType"slide" | "fade" | "scale" | "bounce" | "blur"

Type of entrance animation for items

Default"slide"
enterFrom"top" | "bottom" | "left" | "right"

Direction items enter from

Default"top"
pauseOnHoverboolean

Pause auto-adding when user hovers over the list

Defaultfalse
hoverEffect"none" | "scale"

Effect when hovering over items

Default"none"
clickEffect"none" | "ripple" | "press"

Effect when clicking items

Default"none"
fadeEdgesboolean

Enable smooth fade at top/bottom edges

Defaulttrue
fadeEdgeSizenumber

Size of fade edges in pixels

Default80
fadeColorstring

Background color for fade edges

Default"#0a0a0a"
swipeToDismissboolean

Enable swiping items to dismiss them

Defaultfalse
onDismiss(item: AnimatedListItem) => void

Callback when an item is dismissed via swipe

Defaultundefined
onItemClick(item: AnimatedListItem) => void

Callback function when an item is clicked

Defaultundefined
itemGapnumber

Gap between items in pixels

Default12
classNamestring

Additional CSS classes

Default""
renderItem(item: AnimatedListItem) => ReactNode

Custom item render function

Defaultundefined
heightstring | number

Height of the container

Default"600px"