Syed

Sticky Services Stack

Component 3

About

An editorial scroll-stacking services section with 5 animated capability layers, masked typography reveals, and spring-smoothed depth dimming.

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

Code

How Sticky Services Stack is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import React from "react";
import {
  StickyServicesStack,
  type StickyServicesTheme,
} from "@/components/ui/sticky-services-stack";

const settings = {
  theme: "auto",
  cardCount: 5,
  sectionLabel: "(Services)",
  sectionIntro: "From core brand foundations to cross-functional moments.",
  ctaLabel: "Let's work together",
  enableStackDimming: true,
  animatePreviews: true,
};

const VALID_THEMES: StickyServicesTheme[] = ["auto", "light", "dark"];

export default function StickyServicesStackDemo(
  props: Partial<typeof settings>
) {
  const config = { ...settings, ...props };

  const theme: StickyServicesTheme = VALID_THEMES.includes(
    config.theme as StickyServicesTheme
  )
    ? (config.theme as StickyServicesTheme)
    : "auto";

  const rawCount = Number(config.cardCount);
  const cardCount = Number.isFinite(rawCount)
    ? Math.max(1, Math.min(5, Math.round(rawCount)))
    : settings.cardCount;

  const sectionLabel =
    typeof config.sectionLabel === "string" && config.sectionLabel.trim()
      ? config.sectionLabel
      : settings.sectionLabel;

  const sectionIntro =
    typeof config.sectionIntro === "string" && config.sectionIntro.trim()
      ? config.sectionIntro
      : settings.sectionIntro;

  const ctaLabel =
    typeof config.ctaLabel === "string" ? config.ctaLabel : settings.ctaLabel;

  return (
    <div className="w-full min-h-[400px]">
      <StickyServicesStack
        theme={theme}
        cardCount={cardCount}
        sectionLabel={sectionLabel}
        sectionIntro={sectionIntro}
        ctaLabel={ctaLabel}
        enableStackDimming={Boolean(config.enableStackDimming)}
        animatePreviews={Boolean(config.animatePreviews)}
      />
    </div>
  );
}

Dependencies

More by Syed

View all
  • Animated Beam Integration

    Animated Beam Integration

    136
  • Agency Bento Grid

    Agency Bento Grid

    87
  • Morphing Island Navbar

    Morphing Island Navbar

    77
  • Animated Tree View

    Animated Tree View

    58
  • Rolling Counter

    Rolling Counter

    56
  • Interactive Eye Tracker

    Interactive Eye Tracker

    56
  • SpatialCardCarousel

    SpatialCardCarousel

    46
  • Grid Testimonials Marquee

    Grid Testimonials Marquee

    43