Skip to content

Podcast Episode Card with Cover Art

Tailwind CSS podcast episode card with cover art, episode details, a play button, seek bar, skip buttons and a playback speed toggle.

Also known as: podcast player card, episode player ui, audio episode card, podcast card with controls, podcast episode widget

Tailwind CSS Cards Responsive #audio #card #player #podcast #responsive

Podcast Episode Card with Cover Art live demo

Open in new tab

Tailwind CSS code (HTML, CSS, JS)

A podcast episode card built with Tailwind CSS: square cover art on the left, show and episode details on the right, and a compact player with a big play button, seek bar, skip buttons and a speed toggle. Use it on podcast landing pages, episode archives, newsletters with audio, or as a "latest episode" block on a blog.

How it works

The root is article.tpe-card, which stacks on phones and becomes a horizontal flex row from sm up. The cover is a real photo with object-cover, a 16:10 crop on mobile and full card height on larger screens, plus an "EP 48" badge. The details column holds the show name, a save button (data-tpe-save), the episode title, a meta row with a time element, a two-line description clamped with line-clamp-2, and the player area pushed to the bottom with mt-auto.

The script initializes every .tpe-card on DOMContentLoaded. It reads the episode length from data-tpe-duration and the resume point from data-tpe-start (in seconds). Clicking data-tpe-play swaps the play and pause icons, toggles the tpe-is-playing class and starts a simulated clock that advances the data-tpe-seek range input and updates data-tpe-elapsed and data-tpe-remaining. The data-tpe-skip buttons move back 15 or forward 30 seconds, and data-tpe-speed cycles through 1x, 1.25x, 1.5x and 2x, which also speeds up the clock. In style.css, .tpe-eq draws three small bars that bounce only while the card is playing. For real audio, add an audio element and drive the same UI from its timeupdate event.

The cover photo comes from Unsplash; replace it with your own show artwork.

Customization

  • data-tpe-duration and data-tpe-start on .tpe-card: set the episode length and where playback resumes; set the range max and value to match for the no-JS state.
  • bg-orange-600, accent-orange-600 and text-orange-700: swap orange for teal or violet to restyle the play button, seek bar and links.
  • SPEEDS at the top of script.js: change the playback speed steps, for example [0.75, 1, 1.5, 2].
  • data-tpe-skip="-15" and data-tpe-skip="30": adjust the jump lengths in seconds.
  • sm:w-64 on the cover wrapper: make the artwork column wider or narrower.
  • max-w-3xl on .tpe-card: widen the card for a featured episode.

Use cases

  • Podcast websites: an episode card shows cover art, title and details with a play button
  • Audio show notes: a seek bar and skip buttons let listeners jump around the episode
  • Media apps: a playback speed toggle changes listening speed in one tap
  • Blog embeds: a compact player card sits beside an article or newsletter

Accessibility

The card is an article labelled by #tpe-title. The play button's aria-label switches between "Play episode" and "Pause episode", the save button exposes aria-pressed with a hidden "Save episode" label, and the speed button announces its current value. The seek slider has a hidden label and an aria-valuetext such as "14:20 of 42:15". Skip, speed and save changes are announced through the polite data-tpe-status region. All controls have visible focus-visible outlines, and the bouncing bars and hover scale stop under prefers-reduced-motion.

Podcast Episode Card with Cover Art at a glance

Framework
Tailwind CSS
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Tailwind CSS
Layout
Responsive, works on mobile
Category
Cards
License
Free for personal and commercial use

Questions about this template

Can I use the Podcast Episode Card with Cover Art 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?

Load Tailwind CSS from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

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

Add these to your page (already included in the download):

  • <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>

The Tailwind browser build is for prototyping. In production, compile Tailwind with its CLI or your bundler.

Podcast Episode Card with Cover Art – free Tailwind CSS card template
Podcast Episode Card with Cover Art · free Tailwind CSS card template

More Cards

3D Flip Card – free Pure CSS card template

3D Flip Card

Three pure CSS 3D flip cards that turn on hover, keyboard focus or tap to reveal details and a link on the back.

Event Card with Photo and Date Badge – free Pure CSS card template

Event Card with Photo and Date Badge

Pure CSS event cards with a cover photo, ticket-stub date badge, category chip, time and venue details, price and a ticket button.

Cards with Hover Lift – free Pure CSS card template

Cards with Hover Lift

Pure CSS blog card grid where each card lifts with a deeper shadow and zooms its image on hover or keyboard focus.

Blog Post Card – free Tailwind CSS card template

Blog Post Card

Tailwind CSS blog post card with cover illustration, category badge, date, reading time, clamped excerpt, author row and a fully clickable area.

Card with Image Overlay Text – free Bootstrap 6 card template

Card with Image Overlay Text

Dark Bootstrap 6 travel cards with headline, place and price set over full-bleed photos, a gradient scrim for readability, save buttons and a Toast.

Glassmorphism Card – free Tailwind CSS card template

Glassmorphism Card

Frosted glass profile card in Tailwind CSS with backdrop blur, a light reflection and a follow button over colorful animated gradient blobs.