Cards are the fundamental building blocks of modern user interfaces. This collection demonstrates how to style these versatile containers to organize information into clean, digestible blocks. Explore a range of designs, from simple product displays to interactive dashboard widgets, all featuring subtle hover effects that invite user interaction and create a polished, professional look.
185 CSS Cards
Morphing Profile Card Interaction
demo & codeThis Morphing Profile Card is a sleek UI component perfect for social platforms or team pages. Initially, it presents a large, immersive portrait. Upon interaction (hover or focus), the image smoothly transitions from a portrait ratio to a square, sliding up to reveal detailed profile information and action buttons hidden below. The animation is fluid and adds a layer of discovery to the interface.
Nike Product Card Interaction
demo & codeThis Nike Product Card Interaction is a dynamic UI component designed for e-commerce listings. It transforms a standard static product grid into an engaging experience. When a user hovers over a card, the product image rotates and shifts to make room for a vertical brand label that slides in from the side. This clever use of space allows for a clean initial view while revealing branding details on demand.
Scroll-Driven Masonry Reveal
demo & codeThis Scroll-Driven Masonry Reveal creates a playful, tactile experience where content cards appear to be “dealt” onto the screen as the user scrolls. By leveraging the native CSS Scroll-driven Animations API, it achieves smooth, main-thread-free entrance effects without a single line of JavaScript. The layout adapts intelligently from 2 to 8 columns, making it a robust solution for image galleries or blog archives.
Holographic 3D Interactive Card
demo & codeThis Holographic 3D Interactive Card is a premium UI component inspired by rare physical trading cards. It features a sophisticated depth effect where the logo floats independently from the iridescent background, reacting dynamically to mouse movements or touch input. The use of modern CSS APIs ensures high-performance rendering of complex gradients and masks, creating a truly immersive “collectible” feel for digital assets.
Twitch Style Gradient Hover Card
demo & codeThis Twitch Style Gradient Hover Card brings a high-energy interactive element to your UI, perfect for feature highlights or gaming profiles. It combines a sliding background gradient that utilizes responsive vmin units with a JavaScript-powered staggered text reveal. The result is a fluid animation where the background shifts dynamically while the subtitle types itself in word by word.
Glassmorphism Profile Info Card
demo & codeThis Glassmorphism Profile Info Card is a high-end UI component that replicates the sleek, frosted-glass aesthetic found in modern operating systems like iOS and macOS. It features a sophisticated interplay between background imagery and foreground content, using advanced CSS masking and backdrop filters to create a natural sense of depth and hierarchy.
3D Stacking Card List Effect
demo & codeThis 3D Stacking Card List Effect transforms a standard vertical list into an immersive, layered user interface. By leveraging CSS 3D transforms and focal blur filters, it simulates a physical deck of cards where background items appear distant and out of focus, settling into a clear layout only upon interaction.
Animated Feedback Alert Cards
demo & codeThese Animated Feedback Alert Cards provide a high-polish way to communicate application states like success, ongoing processes, and errors. Each card utilizes a cohesive design system of rounded geometry and custom SVG icons that “draw” themselves into existence, offering immediate and delightful tactile feedback to the user.
Stripe-Inspired Cards Hover Effect
demo & codeThis Stripe-Inspired Cards Hover Effect replicates the sophisticated “flashlight” border interaction seen on modern SaaS websites. Instead of a simple color change, a soft radial gradient follows the user’s mouse cursor across a grid of cards. This creates a cohesive, lighting-aware interface where elements seem to illuminate as you interact with them.
Responsive Portfolio Profile Card
demo & codeThis Responsive Portfolio Profile Card packs a full personal website’s functionality into a single, elegant component. Designed to mimic a native mobile app interface, it features a sticky bottom navigation bar that toggles between “About,” “Experience,” and “Contact” sections. The standout feature is the smooth, animated transition of the card’s dimensions and header layout as users switch contexts.
Profile Card with 3D Hover Animation
A collection of interactive profile cards that flip in 3D to reveal more information, powered by Swiper.js for seamless navigation.
See the Pen Profile Card with 3D Hover Animation.
Jackie's Pet Store
A responsive pet store landing page built with CSS Grid and Flexbox. It features a dynamic navigation system with hover-triggered mega-menus, gradient-styled product cards with scale transitions, and a comprehensive use of CSS variables for consistent theming across breakpoints.
See the Pen Jackie's Pet Store.
Futuristic Card Effect
A high-tech, cinematic profile card that responds to interaction with complex text animation, immersing the user in a sci-fi atmosphere.
See the Pen Futuristic Card Effect.
Creative Section Design
A visually rich, animated section with cards that respond to hover (a colored border appears), creating a sense of interactivity and depth.
See the Pen Creative Section Design.
Round Cards
An aesthetic, minimalist gallery of circular elements where each card is uniquely composed (image on top, bottom, left, or right), creating visual variety within a strict grid.
See the Pen Round Cards.
Wall of Text: Blogged
A futuristic, interactive blog card featuring AI-generated content fetched dynamically via JavaScript. The layout utilizes advanced CSS techniques like :has() for expandable sections, masking and blend modes for rich graphical elements, and variable-driven cursor tracking animations, creating a dynamic and engaging reading experience.
See the Pen Wall of Text: Blogged.
Open Props Bento Grid
A modern, visually appealing content grid that smoothly assembles on scroll, adapting seamlessly to any screen size.
See the Pen Open Props Bento Grid.
Responsive Pricing Cards
A pleasant and responsive tariff selection interface where the user’s attention is focused on the viewed option through color accents and animation.
See the Pen Responsive Pricing Cards.
Rotating Navigation
An interactive card stack that fans out into a deck-like display upon toggling. JavaScript handles the state transition by toggling classes, triggering CSS cubic-bezier transitions that rotate and translate the cards from a bottom-center origin, creating a smooth, elastic opening animation accompanied by a rotating navigation button.
See the Pen Rotating Navigation.
Product Plan Cards with CSS Ribbons
A pure CSS pricing component that creates a dimensional ‘ribbon’ aesthetic solely through ::after pseudo-elements and clip-path geometry. The layout leverages CSS Custom Properties for distinct color themes and calc with negative margins to extend elements beyond the parent container, creating a folded paper effect without any JavaScript dependencies.
See the Pen Product Plan Cards with CSS Ribbons.
Pure CSS Pricing Plans with Gradient Ribbons
A pricing component where complex ribbon geometry is calculated via SCSS trigonometry and sculpted using conic-gradient alongside mask-composite. The organic, fluid connections between shapes are achieved through the filter: blur() contrast() technique, creating a scalable vector-like aesthetic entirely within CSS without relying on runtime JavaScript or external SVG assets.
See the Pen Pure CSS Pricing Plans with Gradient Ribbons.
Interactive Profile Card with Canvas
Canvas-powered dot grid with interactive profile components. Responsive card design featuring smooth transitions, gradient accents, and scalable SVG avatars.
See the Pen Interactive Profile Card with Canvas.
Art Deco Card
An elegant Art Deco style card created purely with CSS/SCSS, utilizing a sophisticated technique with pseudo-elements to construct complex, multi-layered geometric borders and corners.
See the Pen Art Deco Card.
Hot & Cold Swap Card
An advanced UI component demonstrating pure CSS capabilities to create a complex 3D flip effect, with the added use of animated SVG strokes and CSS variables for an instant change of color scheme and media content.
See the Pen Hot & Cold Swap Card.
The Witcher Monster Cards Slider
Showcases a stylish, interactive monster card slider, utilizing pure HTML and CSS for complex design, custom typography, and subtle image animations with a zoom/lift effect on hover.
See the Pen The Witcher Monster Cards Slider.
CSS-Only Character Profile Card with Tabs
A stylish custom layout (character profile card) built entirely on CSS positioning and content switching using HTML radio inputs without JavaScript, effectively creating pure CSS tabs.
See the Pen CSS-Only Character Profile Card with Tabs.
Responsive Banners with CSS Grid and Variables
This component leverages the power of CSS Grid for precise layout control and CSS Custom Properties to dynamically inject data like color schemes. It features decorative CSS Counters and complex background layering for a polished, modern component without relying on JavaScript for styling.
See the Pen Responsive Banners with CSS Grid and Variables.
Card Glow | Bioluminescence Effect
Check out the smooth SVG animation achieved with CSS offset-path and keyframes, and the dynamic glow effect using the <feDropShadow> filter for a deep visual experience.
See the Pen Card Glow | Bioluminescence Effect.
Card with Illumination Effect
An example of how to achieve an impressive pseudo-3D interface using pseudo-elements (::before) and CSS transforms. The effect is built by layering elements (.light-layer, .darken) with different box-shadow and gradients to simulate the play of light and shadow on the surface.
See the Pen Card with Illumination Effect.
Toggle Cards with Inverted Border-Radius
A simple yet effective implementation of interactive cards using pure JavaScript for click handling. Visual effects, including the checkbox animation, are done entirely in CSS, while the responsive design is built with Sass.
See the Pen Toggle Cards with Inverted Border-Radius.
Striped Box Shadow Effect
The demo focuses on using CSS gradients to generate background patterns. Instead of relying on images, it creates a complex, repeating design with linear-gradient and background-size, which ensures high performance and flexibility in resizing the pattern.
See the Pen Striped Box Shadow Effect.
Author Cards with Popover API
The demo uses the new CSS position-anchor with the popover attribute for native and flexible positioning of hover cards relative to text links. The code applies minimal Vanilla JS solely to invoke the native popover.showPopover() method, showcasing the shift to declarative UI.
Skateboard Product Grid
This demo showcases a responsive grid built on modern CSS technologies: CSS Grid for layout, Custom Properties for centralized theme management, and Fluid Typography using clamp() for ’elastic’ font sizes. The key feature is a complex animation system, including a staggered appearance of cards and advanced :hover effects using animated SVG.
Animated Squiggly Border Glow Cards
A card with a neon border effect where two CSS animations are synchronized - stroke-dashoffset for the SVG frame and hue-rotate for the drop-shadow glow. Each card gets a unique theme via :nth-child and the --cardAccent CSS variable, while multi-layering with z-index positions the glow underneath the main content.
Sleek Product Item
This demo showcases advanced card styling, utilizing pure CSS for a complex gradient background, a hover shadow effect, and smooth image scaling.
Virtual Credit Card UI
A demonstration of “living” cards with two looped @keyframes animations - one for smooth background panning, and another for creating a shimmering gradient highlight.
Character Choose with Preview Card Animation (CSS Sprites)
A sophisticated CSS-only character selector and sprite animator inspired by Minecraft. It leverages CSS Houdini and advanced math functions to drive complex frame-by-frame sprite animations, while :has() selectors manage state changes for character selection, direction toggling, and dynamic FPS adjustment, complete with real-time stats via CSS counters.
CSS Image Stack Cycle
An exceptionally complex image slider/stack UI component, fully implemented via CSS custom properties and CSS Houdini to allow the animation of abstract numerical values; the system uses complex mathematics to control the 3D stacking order, the “fly-out” effect, and random rotation, creating a looping, cascading stack with smooth transitions.
Shuffling Effect in Pure CSS
Efficient layout using CSS Grid to stack cards on top of each other, with dynamic layer control via z-index and the :has() selector to determine the position of the next element; the image animation includes movement and straightening of the rotation upon selection.
Movie Card: Pulp Fiction
A well-structured and responsive movie card where the layout is built using a combination of Flexbox and CSS Grid. All visuals - colors, shadows, spacing - are controlled via CSS Custom Properties, and the composition smoothly changes from a vertical to a horizontal layout via a media query.
See the Pen Movie Card: Pulp Fiction.
Frosted Glass Card
A premium Glassmorphism credit card design featuring a realistic frosted glass effect via backdrop-filter and gradient text clipping. This snippet utilizes CSS variables and mask-image for subtle border highlights.
3D CSS Grid Exploding Stack
A unique layered UI experiment featuring reactive control over 3D rotations and translations via JS configuration, plus the modern View Transition API for seamless light/dark theme switching.
See the Pen 3D CSS Grid Exploding Stack.
Stacked Poetic Cards
A dynamic card carousel/stack technically driven entirely by CSS custom properties and the :has() selector; interactivity is achieved via the “Radio Button Hack” (hidden input[type="radio"]), where selecting one card recalculates variables for all others, creating a smooth 3D transformation effect and dynamic stacking order; a decorative dotted background and a responsive grid layout complement the functionality.