snippets
All collections tagged with "snippets"
20 CSS Banners & Alerts
20 hand-coded CSS banner and alert bars for e-commerce storefronts, SaaS dashboards, marketing sites, and compliance-bound products. Covers GDPR cookie consent with a real preferences panel, promo bars with countdown timers, free-shipping threshold progress, app-install smart banners, maintenance and incident status bars, newsletter signup bars, age verification gates, limited-stock urgency banners, live event announcements, browser upgrade notices, geo and currency switchers, sticky top announcement bars, bottom cookie bars, inline form validation alerts, icon-aligned alert banners, left-border accent alerts, diagonal stripe promos, full-width hero banners, animated gradient border alerts, and a text-wrapping laboratory that shows five strategies for the unbreakable string that breaks more banners than anything else. Every bar is scoped under a .ba-NN prefix for no-collision pasting, guards prefers-reduced-motion, carries the correct aria-live and role semantics, and ports unchanged to React, Vue, Svelte, Astro, Next.js and Tailwind.
15 CSS Chat Bubbles
15 hand-coded CSS chat bubbles for messaging apps, AI assistant interfaces, customer support widgets, and testimonial sections. Covers the pure-CSS bubble with a pseudo-element arrow tail, iMessage and WhatsApp Web recreations, a ChatGPT-style AI response bubble, a Tailwind variant, animated typing indicators, avatar-paired bubbles, a live support widget, bordered and comic-book speech bubbles, image attachments, voice messages with a scrubable waveform, a full chat screen built on flexbox, thought bubbles, and a testimonial card built from a speech bubble. Every bubble is scoped under a .cb-NN prefix for no-collision pasting, uses real semantic markup rather than div soup, guards prefers-reduced-motion, and ports unchanged to React, Vue, Svelte, Astro, Next.js and Tailwind.
22 CSS Countdown Timers
22 hand-coded CSS countdown timer patterns — accessible time element with threshold ARIA, pure-CSS no-JS countdown, session timeout warning, circular depleting ring, OTP resend cooldown, rate-limit retry, auction anti-snipe, delivery ETA, launch waitlist, webinar timezone, appointment reminder, exam thresholds, trial expiry, maintenance window, ticket queue, streak reset, flash sale, sticky bar, cart expiration, coming soon, activity timer, and retro flip clock.
6 CSS Custom Cursor Styles
6 hand-coded CSS custom cursors: pure-CSS SVG brand pointer with cursor: url() and keyword fallback, smooth glowing follower on requestAnimationFrame lerp, magnetic blend cursor with :has() + mix-blend-mode, custom grab/grabbing cursors for drag carousels, dynamic 'View' badge that follows the mouse, and a magnifier zoom lens. Touch-guarded, prefers-reduced-motion respected, WCAG-safe, MIT licensed.
30 CSS Notifications
30 hand-coded CSS notification demos — each topic ships 2–3 side-by-side variants so you can pick the exact treatment for your surface. Covers toast slide-in animations, auto-dismiss timers, progress-bar countdowns, stacked toast flexbox lists, dark-mode toasts, glassmorphism cards, success/error/warning/info alert semantics, Tailwind toast recipes, notification badges on icons, pulsing dots, avatar badges, shopping cart count badges, clip-path badge cutouts, pinging pulse rings, sticky top banners, dismissible banners with close buttons, floating bottom alert bars, alert-box states, subtle system-status banners, animated bell hover, toggle-switch controls, expandable notification panels, bounce arrival animations, sweet-alert style icon animations, aria-live accessibility patterns, action-button notification cards, responsive mobile bars, browser push-style popups, timeline alert feeds, and floating feedback buttons with badges. Modern @starting-style, transition-behavior:allow-discrete, :has(), popover, @property, linear() spring easing, scroll-driven animations throughout, prefers-reduced-motion honoured, WCAG 2.2 AA compliant, framework-agnostic, MIT licensed.
20 CSS Ribbons
20 hand-coded CSS ribbons and ribbon banners for e-commerce product cards, SaaS pricing tables, blog article thumbnails, open-source project pages, award and certificate seals, and coupon campaigns. Covers corner sale ribbons with wrapped tails, sold-out overlays with muted disabled state, bestseller and featured badges, the GitHub fork-me corner ribbon rebuilt without an image, notched clip-path corner badges, full-width swallowtail V-cut banners, skewed 3D headers, most-popular pricing bands, annual-savings billing badges, bookmark flag tags, hanging ribbon bookmarks, award rosettes with dangling tails, certificate trust seals, 3D folded paper banners, coupon ribbons with dashed tear-off edges, stitched craft borders, hover-unfold animations, slide-in notification ribbons, waving flag keyframes, and a modern single-element clip-path polygon build with no pseudo-elements. 16 are pure CSS with zero JavaScript. Every ribbon is scoped under a .rib-NN prefix for no-collision pasting, guards prefers-reduced-motion, and ports unchanged to React, Vue, Svelte, Astro, Next.js and Tailwind.
24 CSS Tags & Chips
24 hand-coded CSS tag and chip designs for marketplace filter chips, tag-input fields, presence status dots, and category pill badges: multi-select filter chips with :has() live-count, interactive tag-input field with Enter/comma commit + Backspace pop + duplicate-shake + aria-live announcements, badge with online status indicator dot (online/away/busy/offline/typing), category pill badge with icon and single-hue oklch() theming, dismissible pill with close button, hover-scale interaction, animated border outline, liquid-fill hover, stacked cluster, notched-corner cyberpunk, glassmorphism, aurora gradient border, retro pixel-art, neo-brutalist stamp, animated gradient border, live pulsing status badge, draggable reorder list with pointer events, pure-CSS checkbox-driven tag selector, dismissible with undo toast, notification-count label, scrolling text marquee, expandable content on click, connected radio-button segment, and workflow state process badge. 22 truly Pure CSS + 2 with a tiny optional vanilla JS snippet. Every chip is scoped under a unique .ctc-NN prefix so it drops into any project without CSS collisions, ships prefers-reduced-motion guards, and is framework-agnostic (works as-is in React, Vue, Svelte, Astro, Next.js, Remix, or plain HTML).
5 CSS Variable Dark Mode Systems
5 hand-coded CSS dark-mode implementations built on the 5-variable custom-property pattern (--bg, --surface, --text, --border, --accent). Pure CSS OS sync with prefers-color-scheme, data-theme toggle + localStorage, anti-FOUC blocking head script, 3-way System/Light/Dark switcher, and the native light-dark() function. Zero-flicker, WCAG-AA accessible, framework-agnostic, MIT licensed.