Podcast player UI architecture: Vinyl disk animations, scrub rails, and speed selectors
Podcast episodes and audio previews deserve cards that feel tactile and engaging. In this lab, we build custom audio player cards with progress bars, duration indicators, and play/pause micro-animations.
Copy Elementor / WP Code
In the code studio above, switch to the Elementor / WP tab and click Copy to get the self-contained bundle with scoped styling, card markup, and audio controller script.
Insert an HTML Widget
In your WordPress dashboard, edit your podcast episode or music landing page with Elementor (Free or Pro). Drag an HTML widget onto your canvas.
Paste & Update Audio Track
Paste the snippet into the HTML Code box. Replace the audio source URL, track name, and artist text with your details from the WordPress Media Library.
Features & Best Practices
Sync with Elementor Global Colors
Easily match your site color palette by linking --audio-card-accent to var(--e-global-color-primary) in the included CSS.
Zero Third-Party Tracking
Eliminate tracking cookies and heavy iframes from Spotify or SoundCloud, improving Core Web Vitals and preserving visitor privacy.
Frequently Asked Questions
How do I embed this custom audio card component into Elementor?
Switch to the Elementor / WP tab in the code studio above and click Copy. In WordPress, open your Elementor canvas, drag an HTML widget into your container or podcast section, and paste the code snippet. Replace the audio source URL, cover artwork, and track title with your media files.
How does the rotating vinyl disc animation work?
The vinyl disc uses a pure CSS keyframe rotation combined with CSS transform-origin and an active .is-playing state. When the user plays audio, the disc smoothly glides out from behind the album artwork and spins continuously until paused.
Can I connect this audio card to real podcast RSS feeds or MP3 audio streams?
Yes. The generated code binds directly to standard HTML5 <audio> elements. You can point the audio src attribute to any valid MP3, AAC, or streaming audio URL, and the scrubber and timestamps will automatically sync with playback.
Is this player accessible for keyboard and screen reader users?
Yes. All buttons include semantic aria-label attributes, and the timeline scrubber uses role="slider" with aria-valuenow to allow keyboard navigation with Arrow keys.
How do I design a modern music track card with album artwork and playback in CSS?
Use a responsive flex card featuring square album art (with object-fit: cover and subtle shadow), track title, artist name, and an animated soundwave bar that dances when audio is playing.
How do I animate soundwave bars when an audio card is playing?
Create 4 to 6 thin vertical bars with background: var(--accent);. When playing, apply keyframe animations with staggered animation-delay (e.g. 0.1s, 0.3s, 0.2s) that scaleY between 0.2 and 1.0.
How do I extract dominant colors from album artwork to tint the card background?
Draw the image to a hidden 1x1 canvas to extract average RGB values, or use CSS backdrop-filter with the album art blurred in the background (filter: blur(40px)) for automatic color harmony.
How do I create a floating mini music player bar that docks to the bottom of the screen?
Apply position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1000; background: rgba(15,23,42,0.9); backdrop-filter: blur(12px); with a compact horizontal track layout.