React zipper animationZipper Announcement Bar

React zipper animation: an announcement you unzip: the bar is a closed zipper, and dragging its pull parts the teeth to reveal the offer underneath.

Features

  • The bar is a closed zipper with interlocking metal teeth drawn in code
  • Drag the pull and the teeth part behind it, revealing the offer underneath
  • Let go past the middle and it runs open; before that it springs shut
  • The pull is a button too: one click or key opens it
  • Still for reduced motion

Best for: Clothing and outdoor brands, and any sale that deserves a moment of play above the navbar.

Installation

npm install motion lucide-react clsx tailwind-merge

Then copy the files from the Code tab into the same paths in your project, in TypeScript or JavaScript.

Props

PropTypeDefaultDescription
hintstring-The line on the closed zipper.
messagestring-What the open bar says.
action{ label: string; href: string }-The button on the open bar.
classNamestring-Classes on the bar.

FAQ

Is the Zipper Announcement Bar free to use?

Yes. Zipper Announcement Bar is free to copy into your own projects. Open the Code tab and paste the files into your app.

Does Zipper Announcement Bar work with Next.js and React?

Yes. It's a React client component made for the Next.js App Router, styled with Tailwind CSS and animated with Framer Motion (the motion package).

Can I use Zipper Announcement Bar in JavaScript instead of TypeScript?

Yes. Every file comes in TypeScript and JavaScript. Switch the language in the Code tab.

What does Zipper Announcement Bar need installed?

motion, lucide-react, clsx, tailwind-merge, plus the shared helpers from the Installation page.

Is Zipper Announcement Bar accessible?

Every link and button is reachable by keyboard with a visible focus ring, and the animation stays still for visitors who ask for reduced motion.