Loading effect…
Loading preview…
scroll · react · free
Tilted service cards rise and stack over a fixed intro as you scroll.
npx znverse add next-stackInstalls gsap, @gsap/react, lenis.
import type { ReactNode } from "react";
type CardProps = {
title: string;
children: ReactNode;
number: string | number;
tags?: string[];
surfaceFrom?: string;
surfaceVia?: string;
surfaceTo?: string;
className?: string;
};
function buildBackground(
surfaceFrom: string,
surfaceVia: string,
surfaceTo: string,
) {
if (!surfaceVia) {
return `linear-gradient(176deg, ${surfaceFrom} 0%, ${surfaceTo} 100%)`;Tilted service cards rise and stack over a fixed intro as you scroll.
Copy src/ into a React project and render <NextStack />.
Originally published at https://github.com/Hank-D-Tank/next-stack.