Skip to content

Video Card with Play Button Overlay

Pure CSS video cards with photo thumbnails, a frosted play button with pulse ring, duration badges and a featured card layout.

Also known as: video thumbnail card, video play button overlay, video cards grid, youtube style video card, video gallery cards

Video Card with Play Button Overlay live demo

Open in new tab

Pure CSS code (HTML, CSS)

A set of video cards with a centered play button overlay, built with pure CSS and no JavaScript. Each card shows a photo thumbnail, a frosted glass play button with a pulse ring, a duration badge and the episode title. Use it for video libraries, course lessons, podcast episodes, tutorial hubs or a "latest videos" block on a landing page.

How it works

The root section.vc-section holds a header (.vc-kicker, .vc-heading and the .vc-all link) and the .vc-grid. Every article.vc-card contains a .vc-media box with the .vc-img thumbnail, the decorative .vc-play button, an optional .vc-chip label and the .vc-duration badge, followed by .vc-body with the title and .vc-meta line.

The .vc-media::after layer adds a vignette and a bottom gradient so white icons and badges stay readable on bright photos. .vc-play is centered with translate(-50%, -50%), blurred with backdrop-filter, and its ::before ring runs the vc-pulse keyframes. The title link .vc-link is stretched over the whole card through .vc-link::after, so a click anywhere on the card opens the video while the HTML keeps a single link per card. On hover or :focus-within the photo zooms, the play button fills with the accent color and grows.

The grid shows one column on phones, two columns from 640px with the featured card on top, and from 900px .vc-card--featured spans two rows on the left with its title placed over the photo.

Customization

  • --vc-accent on .vc-section: color of the kicker, the "Featured" chip, the link underline, the focus ring and the play button on hover.
  • --vc-play-size: diameter of the play button; the featured card overrides it with 5.5rem inside the 900px media query.
  • --vc-zoom: how far the thumbnail scales on hover, e.g. 1 to disable the zoom.
  • --vc-bg, --vc-card and --vc-muted: section background, card background and the color of the meta line.
  • --vc-max: maximum width of the header and grid.
  • Remove .vc-card--featured from the first card to get three equal cards, or delete the .vc-chip span to hide the label.
  • grid-template-columns: 1.65fr 1fr on .vc-grid (900px media query): change the width of the featured column.

The thumbnails are photos from Unsplash; replace them with your own video posters at a 16:9 ratio.

Use cases

  • Video libraries: photo thumbnails with a frosted play button invite visitors to watch
  • Course sites: duration badges show how long each lesson is
  • Media sites: a featured card layout highlights the main video
  • Tutorial pages: a pulse ring around the play button draws attention

Accessibility

Each card has exactly one link, the heading link, so screen readers announce the video title instead of a vague "play" label. The play icon is aria-hidden, and the duration badge contains a visually hidden "Duration" prefix. The stretched link draws a 3px accent outline around the whole card on :focus-visible, and keyboard focus triggers the same zoom and button highlight as hover. Every thumbnail has a descriptive alt text and explicit dimensions. Under prefers-reduced-motion the pulse ring, zoom and transitions are switched off.

Usage notes

Point each .vc-link to the video page, or open a lightbox player from your own script. Several sections can share a page because all styles are scoped to .vc- classes.

Video Card with Play Button Overlay at a glance

Framework
Pure CSS
Code
HTML, CSS
JavaScript
Not needed, CSS only
Dependencies
None
Layout
Responsive, works on mobile, dark design
Category
Video Players
License
Free for personal and commercial use

Questions about this template

Can I use the Video Card with Play Button Overlay code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

There is nothing to install. Paste the HTML where the component should appear and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. It is built with HTML and CSS only, so there is no JavaScript to load.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

Video Card with Play Button Overlay – free Pure CSS video player template
Video Card with Play Button Overlay · free Pure CSS video player template