React pull cord animationPull Cord Roller Blind Bar

React pull cord animation: an announcement on a roller blind: pull the bead hanging from the top of the page and the bar drops down with a spring; pull again to roll it up.

Features

  • A cord and bead hang from the top of the page and stretch as you pull
  • Let go past the mark and the blind drops with the message on it
  • Pull again to roll it up; the cord springs back each time
  • The bead is a button, so a click or a key works it too
  • Still for reduced motion

Best for: Product updates and launches that should wait to be asked for instead of taking the top of every page.

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
messagestring-What the blind says.
action{ label: string; href: string }-The button on the blind.
pullLabelstring-The bead's name while rolled up.
closeLabelstring-The bead's name while down.
classNamestring-Classes on the wrapper.

FAQ

Is the Pull Cord Roller Blind Bar free to use?

Yes. Pull Cord Roller Blind Bar is free to copy into your own projects. Open the Code tab and paste the files into your app.

Does Pull Cord Roller Blind 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 Pull Cord Roller Blind Bar in JavaScript instead of TypeScript?

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

What does Pull Cord Roller Blind Bar need installed?

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

Is Pull Cord Roller Blind 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.