Card Snippets — Free HTML CSS JS Copy-Paste Card Components
147 card components · Profile, Glass, 3D Flip, Product, Music Player · Exports to React, Vue, Angular & Tailwind
What's included
Features
About this category
Card Snippets — Free Profile, Glass, 3D Flip, Product, and Social Cards
Cards are the fundamental unit of content display in modern web design. Every social feed, product listing, team page, and dashboard uses cards to group related information into a contained, scannable unit. This collection covers the full range of card patterns — from a simple profile card that needs zero JavaScript to a fully interactive music player card with vinyl spin animations.
Every snippet is plain HTML and CSS — most need no JavaScript. Copy the code into any project without installing anything.
Profile Card shows gradient avatar initials (no image load), a stats row with follower and following counts, and a follow button that toggles between two states. Each card can have a unique avatar colour by passing a different gradient in the inline style.
Glass Card (glassmorphism) uses backdrop-filter: blur(16px) to blur the content behind the card, background: rgba(255,255,255,0.15) for the semi-transparent tint, and border: 1px solid rgba(255,255,255,0.3) to simulate a frosted glass edge. All three properties must be present on a colourful background to create the effect.
Gradient Border Card achieves an animated gradient border without a real border property. A ::before pseudo-element with inset: -1.5px and a conic-gradient background is positioned behind the card. The card itself has a background colour that covers the pseudo-element everywhere except the 1.5px overflow. The conic gradient rotates via a CSS keyframe animation.
3D Flip Card uses transform-style: preserve-3d on the container and separate front and back faces. The front face has no transform; the back face has rotateY(180deg) and backface-visibility: hidden. On hover, the container rotates 180 degrees. Both faces are visible at all times — the backface-visibility prevents each face from showing through the other during the rotation.
Music Player Card features a vinyl record that spins via a CSS animation (paused/running toggled by play/pause), an animated waveform visualiser, and a track array that advances on next click. The vinyl spin uses animation-play-state rather than adding/removing the animation, preventing a jump back to position 0 on resume.
Product Card has three interactive states: a colour swatch selector that updates the product image background via data attributes, a wishlist toggle that fills a heart icon, and an "Add to Cart" button that shows an "Added!" feedback state for 1.5 seconds.
Social Post Card implements an optimistic like: clicking the heart increments the displayed count immediately without waiting for an API response. If the request failed in a real implementation, you would decrement back and show an error.
Testimonial Card, Article Card, and Event Card are pure HTML and CSS — no JavaScript — for static content display with hover effects and clean semantic markup.
Real-world uses
Common Use Cases
Got questions?
Frequently Asked Questions
Pure HTML and CSS (zero JavaScript): Profile card, glass card, gradient border card, testimonial card, article card, and event card. They use CSS :hover, transitions, and animations only. Vanilla JavaScript required: product card (swatch selector, wishlist toggle, cart feedback), social post card (optimistic like counter), and music player card (play/pause toggle, track switching, vinyl animation state).
backdrop-filter: blur(16px) blurs all content behind the element — it requires content behind the card to blur, so the card must be overlaid on an image, gradient, or colourful background. background: rgba(255,255,255,0.15) adds the semi-transparent white tint. border: 1px solid rgba(255,255,255,0.3) creates the frosted glass edge. All three properties together produce the effect. On a plain white background there is nothing to blur and the effect will not be visible.
The container has transform-style: preserve-3d which tells the browser to render its children in 3D space. The front face has no transform. The back face has rotateY(180deg) applied statically — it starts already flipped. Both faces have backface-visibility: hidden so each face becomes invisible when it is rotated more than 90 degrees away from the viewer. On :hover, the container itself rotates 180deg, which brings the back face forward and hides the front face.
Click "JSX" on any card to download a React component. For the profile card, convert avatar initials, name, and stats to props. For the product card, manage swatchColor, isWishlisted, and cartState in useState. For the music player, store currentTrack index and isPlaying in useState and control animation-play-state via a conditional className. In Next.js, pass card data from getStaticProps or getServerSideProps for server-rendered card grids.
All 147 cards snippets, A to Z
- 3D Flip Card
- 3D Pin Card
- A/B Test Results Card
- Achievement Badge Collection Grid
- AI Agent Action Approval Card
- AI Confidence Score Badge
- AI Diff Review Card
- AI Persona Selector
- AI Safety Refusal Card
- AI-Generated Review Summary Card
- Article / Blog Card
- Atropos 3D Parallax Card
- AutoAnimate Filter Grid
- Avatar Group
- Avatar Stack with Tooltip
- Avatar Status List
- Avatar with Status
- Blog Post Card Grid
- Boarding Pass
- Bootstrap Blog Post Card Grid with Read-Time Filter
- Bootstrap Comment Section with Replies
- Bootstrap Product Card Grid with Quick Add to Cart
- Bootstrap Profile Card with Follow Toggle
- Bootstrap Team Member Card Grid
- Bootstrap Testimonial Grid with Ratings
- Border Beam
- Callout / Admonition Box
- Card Component Light/Dark Preview
- Certificate of Completion Preview
- Changelog / Release Notes
- Chat Message Bubbles with Read Receipts
- Checkout Trust & Security Badge Strip
- Claymorphism Card
- Collaborator Presence Bar
- Comment Thread
- Competitive Rank Tier Badge
- Confetti Celebration Card
- Container Query Card
- CountUp.js Stat Cards
- Coupon Card
- Credential Expiry Warning Card — Color-Escalating Countdown
- Crypto Price Ticker Card
- Customer Review Card
- Delivery ETA Card
- Direction-Aware Hover
- Draggable Throw Notes
- Empty State with Sample Data Toggle
- Encrypt Reveal Card
- EV Charging Status Card
- Event Card
- Expandable Card
- Feature Checklist
- Feature Highlight Cards
- Feature List
- Flashcard Deck
- Focus Cards
- Gift Card Voucher
- Gift Wrap Option Card
- Glare Card
- Glass Card
- Glowing Stars Card
- Gradient Border Card
- Guest WiFi Access Card
- Hand-Drawn Annotation Card
- Heart Rate Zone Card
- Helpful Feedback Widget
- Hotel Room Type Picker
- Hover Card
- Image Hover Reveal Cards
- Image Zoom Card
- Insurance Claim Status Card
- Integration Cards
- Invoice Preview
- Job Listing Card
- Live Cursor Name Tags
- Live Edit Presence
- Location & Address Card
- Lottie Empty State Illustration
- Loyalty Points Widget
- Meteor Card
- Mini Cart
- Motion One Spring Card Expand
- Motion One Spring Cards
- Music Player Card
- Neo-Brutalist Card
- Neumorphism Card
- NFT Mint Progress
- NPS Survey Widget
- Nutrition Label
- Offer Letter Preview Card
- Onboarding Checklist Widget
- Order Summary
- Order Tracking Timeline
- Out of Stock Overlay
- Overlapping Avatar Stack with Overflow Count
- Parallax Tilt Card
- Parallax Tilt Product Card
- Parcel Locker Pickup Code Card
- Password Reset Flow Card
- Payment Success Card
- Pet Vaccination Reminder Card
- Plan Upgrade Proration Preview
- Poll Widget
- Popmotion Drag Inertia Card
- Popmotion Swipe-Dismiss Stack
- Prescription Refill Card
- Product Bundle Builder
- Product Card
- Profile Card
- Profile Completeness Card — Weighted Progress with Next-Best-Action
- Property Listing Card
- Recipe Card with Serving Scaler
- Referral Card
- Rental Car Comparison Cards
- ResizeObserver Live Card
- Restaurant Menu Item Customizer
- Shared Document Presence Bar
- Social Post Card
- Spotlight Hover Card
- Spotlight Product Card
- Stacked Cards Deck
- Staking Rewards Card
- Star Rating Breakdown Card
- Status Pill
- Stock Urgency Bar
- Subscription Pause/Resume Flow
- Subscription Tier Card Stack — Recommended Highlight
- Swipe Cards
- Swipeable Cards Stack
- Task Approval Flow Card
- Team Member Card Grid
- Team Member Cards
- Team Presence List
- Terminal Window
- Testimonial Card
- Testimonial Masonry Wall
- Testimonial Wall
- Text Selection Highlight & Comment
- Tilt Glow Card
- User Role Card with Conditional Permission Checkboxes
- Vanilla-Tilt 3D Card Grid
- Velocity.js Staggered Card Reveal
- Video Testimonial Card
- Virtual Tour Badge
- Wobble Card
- WOW.js Scroll Reveal Cards
- WOW.js Staggered Testimonial Wall