← All elements

Podcast Episode Card

by @admin · 0 views

<article class="pec"><div class="art">42</div><div class="t"><b>Designing Quietly</b><span>The CSS Hour · 38 min</span><div class="w"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div></div><button type="button" aria-label="Play episode"></button></article>

About this card

An episode card with gradient cover art, a play button and a mini waveform that animates while hovered.

How it works

The card lines up cover art, text and a play button with flexbox. The title is cut with an ellipsis when it is too long. The mini waveform is a row of thin bars of three heights, and hovering the card colours them and runs a scaling animation with different delays.

Ways to customise it

  • Change the cover gradient and episode number.
  • Add or remove bars to change the waveform width.
  • Change the 0.7s animation speed.

Good to know

The play button has an accessible label and a focus outline. It does not play audio by itself, so wire it to an audio element in your page.

Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.

More in Cards

View all →