Skip to content

Slam List

Staggered list entrance: every child slams in from the side or bottom with a tilt and a stiff spring jolt, one after another, when the list scrolls into view. Wraps each child in an li (or div).

brutalist/effect/slam-list
Open ↗

Source

"use client";

import { Children, type ReactNode } from "react";
import { motion, useReducedMotion, type Variants } from "motion/react";
import { cn } from "@/lib/utils";

export interface SlamListProps {
  /** Each child is slammed in turn. */
  children: ReactNode;
  /** Seconds between items. */
  stagger?: number;
  /** Where items come from. */
  from?: "left" | "right" | "bottom";
  as?: "ul" | "ol" | "div";
  className?: string;
  itemClassName?: string;
  repeat?: boolean;
}

/**
 * Staggered list entrance: each child slams in from off-axis, overshoots with a hard
 * jolt and settles, one after the other. Wraps each child in an item element.
 */
export function SlamList({ children, stagger = 0.09, from = "left", as = "ul", className, itemClassName, repeat = false }: SlamListProps) {
  const reduce = useReducedMotion();
  const List = motion[as];
  const Item = as === "div" ? motion.div : motion.li;

  const offset = from === "bottom" ? { y: 60, x: 0 } : { x: from === "left" ? -80 : 80, y: 0 };
  const item: Variants = {
    hidden: { opacity: 0, ...offset, rotate: from === "right" ? 4 : -4 },
    shown: {
      opacity: 1,
      x: 0,
      y: 0,
      rotate: 0,
      transition: { type: "spring", stiffness: 700, damping: 22, mass: 0.6 },
    },
  };

  return (
    <List
      className={className}
      initial={reduce ? false : "hidden"}
      whileInView="shown"
      viewport={{ once: !repeat, amount: 0.2 }}
      variants={{ hidden: {}, shown: { transition: { staggerChildren: stagger } } }}
    >
      {Children.toArray(children).map((child, i) => (
        <Item key={i} variants={item} className={cn("will-change-transform", itemClassName)}>
          {child}
        </Item>
      ))}
    </List>
  );
}

export default SlamList;

modules/brutalist/effect/slam-list/index.tsx

Props

PropTypeDefaultDescription
children*ReactNode—Items; each child becomes one animated item.
staggernumber0.09Seconds between items.
from"left" | "right" | "bottom""left"Entrance side.
as"ul" | "ol" | "div""ul"List element (items are li, or div for as=div).
className / itemClassNamestring—Classes on the list / on every item.
repeatbooleanfalseReplay on every viewport entry.

Other transition variants in Brutalist

Transition in other art directions

Animated

Cascade Cards

Scroll-triggered cascade: each child drops in from above with a 3D forward tilt and a soft spring, one after the other — ideal for notification or feed lists.

GlassTransition
Animated

Circle Reveal

Scroll-triggered circular reveal: content appears through a clip-path circle growing from a chosen origin point while going from blurred to sharp.

GlassTransition
Animated

Glass Reveal

Scroll-triggered entrance for frosted panels: slides in from bottom/left/right, scales up from 96% with a soft overshoot while the content goes from 14px blur to sharp. Optional built-in glass panel.

GlassTransition
Animated

Scroll Zoom

Scroll-linked product showcase: as the element rises through the viewport it scales from 82% to 100%, un-tilts from 18° and fades in (motion useScroll).

GlassTransition
Animated

Clip Reveal

Scroll-triggered clip-path reveal (from bottom, top, left, right or center) with a subtle scale settle and fade — ideal for screenshots, product mock-ups and cards.

MinimalTransition
Animated

Fade Blur Reveal

Scroll-triggered entrance where opacity, an 8px rise and a 6px blur resolve together with an expo-out curve. Single block or staggered children.

MinimalTransition
Animated

Stagger Grid

Grid entrance where children fade, rise and un-blur one by one in reading order or as a diagonal wave from the top-left when the grid scrolls into view.

MinimalTransition
Animated

Word Reveal

Scroll-triggered headline reveal: each word rises out of its own clipping mask with an expo-out ease, staggered word by word. Works for h1–h3 and paragraphs.

MinimalTransition
Animated

Curtain Wipe

Block reveal: a solid ink (or signal) curtain covers the content, then slides away to the right, uncovering it — for images and cards entering the viewport.

Mono CleanTransition
Animated

Inset Reveal

Image entrance: a clip-path inset shrinks from 12% to 0 while the inner content scales from 1.15 to 1 — the frame “opens” onto the image. Observed on an unclipped wrapper.

Mono CleanTransition
Animated

Line Reveal

Headline revealed line by line: each line slides up from behind its own mask with a sharp ease, staggered, when it enters the viewport — the classic editorial reveal.

Mono CleanTransition
Animated

Stagger Fade

The quietest entrance: list items simply fade in one after another (no movement), 60ms apart, when the list enters the viewport.

Mono CleanTransition
Animated

Fade Up

The workhorse scroll entrance: content fades in and rises 16px with a quick ease-out when it enters the viewport. Instant with reduced motion.

Neo CorporateTransition
Animated

Scale In

Product-shot entrance: content scales up from 0.94 (optionally from a slight perspective tilt) and fades in with a gentle ease when it enters the viewport.

Neo CorporateTransition
Animated

Stagger Grid

Responsive grid whose items fade + rise in sequence (row by row, left to right) when the grid scrolls into view; a subtle scale from 0.98 keeps it crisp.

Neo CorporateTransition
Animated

Wipe Reveal

Reveal for images, charts and mockups: a primary bar sweeps across, then the content is unveiled with a clip-path wipe (left→right or bottom→top) on scroll into view.

Neo CorporateTransition
Animated

Arch Reveal

Media reveal through an opening arch: a clip-path ellipse grows from the bottom center until the content is fully shown, leaving an arch-topped frame.

Organic SoftTransition
Animated

Bloom Stagger

List that blooms open: items fade in one by one while unrotating from a slight alternate tilt and rising, like petals settling, when the list enters the viewport.

Organic SoftTransition
Animated

Grow In

Sprouting entrance: content grows from 85% scale out of its bottom edge while fading in, with a soft organic overshoot, when it enters the viewport.

Organic SoftTransition
Animated

Soft Blur In

Dreamy entrance: content comes into focus from a soft blur while fading in and drifting up a few pixels — like morning mist lifting.

Organic SoftTransition
Animated

Blob Reveal

Reveal where an organic pastel blob springs up behind the content with a slight rotation, then the content fades up on top of it.

Soft FlatTransition
Animated

Pop In

Scroll-triggered pop: content scales up from 80% with a friendly spring overshoot while fading in; stagger siblings with delay.

Soft FlatTransition
Animated

Rise Stagger

List entrance: each child rises 24px and fades in one after another with a soft spring bounce when the list scrolls into view.

Soft FlatTransition
Animated

Swing In

Playful entrance: the element swings in from a side with a rotation like a hanging sign and settles with a springy wobble.

Soft FlatTransition