Animated List

Animated list with animated items

animated-list-tw
  • 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

0.4
12
2000
10
80

Props

NameTypeDefaultDescription
itemsAnimatedListItem[][]Array of items to display with id and content
durationnumber0.4Duration of item animation in seconds
easing[number, number, number, number][0.25, 0.46, 0.45, 0.94]Animation easing function as cubic bezier values
autoAddDelaynumber2000Delay between auto-adding items in ms (0 to disable)
maxItemsnumber10Maximum number of items to display
startFrom"top" | "center" | "bottom""center"Starting position of list items
animationType"slide" | "fade" | "scale" | "bounce" | "blur""slide"Type of entrance animation for items
enterFrom"top" | "bottom" | "left" | "right""top"Direction items enter from
pauseOnHoverbooleanfalsePause auto-adding when user hovers over the list
hoverEffect"none" | "scale""none"Effect when hovering over items
clickEffect"none" | "ripple" | "press""none"Effect when clicking items
fadeEdgesbooleantrueEnable smooth fade at top/bottom edges
fadeEdgeSizenumber80Size of fade edges in pixels
fadeColorstring"#0a0a0a"Background color for fade edges
swipeToDismissbooleanfalseEnable swiping items to dismiss them
onDismiss(item: AnimatedListItem) => voidundefinedCallback when an item is dismissed via swipe
onItemClick(item: AnimatedListItem) => voidundefinedCallback function when an item is clicked
itemGapnumber12Gap between items in pixels
classNamestring""Additional CSS classes
renderItem(item: AnimatedListItem) => ReactNodeundefinedCustom item render function
heightstring | number"600px"Height of the container