ComponentsNew

Stacked List

Cards rest in a stack, fan out into a column, scroll down and spring back together. The loop repeats on its own, great for a notification feed.

Customize

accentColor
secondaryColor
highlightColor

Based on Animated List (MIT license) · Terms of use

More in Pro

View all

Props

12 properties
PropertyTypeDefaultDescription
childrenReactNode—List cards, for example notifications.
stackGapnumber20Offset between cards in the stack in pixels.
columnGapnumber85Distance between cards in the column in pixels.
scaleFactornumber0.05How much bigger each next card in the stack is.
scrollDownDurationnumber5Seconds the column scrolls down.
formationDurationnumber1Seconds the stack takes to fan out into a column.
pauseDurationnumber600Rest in the stack before each loop in milliseconds.
visibleItemsnumber4How many cards are visible in the stack.
accentColorstring"#ffffff"Main colour. Cards read it as var(--stacked-accent); in the demo it tints the surface, border and icon circle.
secondaryColorstring"#a3a3a3"Second colour, var(--stacked-secondary). In the demo it ends the icon circle gradient.
highlightColorstring"#ffffff"Light highlight, var(--stacked-highlight). In the demo it colours the icons.
classNamestring—Extra classes.

Dependencies

3 required packages

npm install motion clsx tailwind-merge

Related components

View all