Loading effect…
Loading preview…
scroll · html · free
Service cards stack on top of each other as you scroll.
npx znverse add stack-scrollLoads lenis, gsap from a CDN.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Stack Scroll</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/lenis@1.3.4/dist/lenis.css"
/>
<style>
:root {
--font-editorial: "Instrument Serif", "Times New Roman", Times, serif;
--font-sans: "DM Sans", system-ui, sans-serif;Service cards stack on top of each other as you scroll.
Copy the files in src/ into a static page. Everything runs in the browser with no build step.
Originally published at https://github.com/Hank-D-Tank/stack-scroll.