Cyberpunk Stripe Banner Notification
A fixed full-viewport banner with animated diagonal stripes, GSAP reveal, scan-line effects, and a dismissible expandable detail panel.
CyberpunkStripeBannerNotification mounts as a fixed overlay at the top or bottom of the viewport. It renders a continuously-animating diagonal-stripe bar, a status message row, and an expandable detail panel that uses a GSAP cloak-style reveal and text scramble. The banner persists until the user dismisses it (stored in localStorage). Use it for site-wide status alerts, maintenance notices, or beta-access prompts.
Installation
npx shadcn@latest add @adv/cyberpunk-stripe-banner-notificationUsage
import { CyberpunkStripeBannerNotification } from '@/components/ui/cyberpunk-stripe-banner-notification';
// In your root layout or page:
<CyberpunkStripeBannerNotification position="top" />Note: Because the component uses
position: fixed, it renders over all other page content. Mount it once in a layout file. Dismiss state is persisted under the keycyberpunk-stripes-banner-dismissedinlocalStorage.
Example
The live preview below shows a contained, static reproduction of the banner's visual style. The full component is a viewport-level overlay.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
position | "top" | "bottom" | "top" | Anchors the banner to the top or bottom of the viewport. When "bottom", the stripe bar appears below the content row and the detail panel expands upward. |