feat: video poster image fallback #51

Closed
opened 2026-06-04 12:03:43 +00:00 by jmiller · 1 comment
Owner

Summary

Add a poster/fallback image that displays while the background video is loading. Currently the hero shows the overlay colour or nothing until the video stream begins.

Requirements

  • New videoPoster media field (type images, showon heroMode:video,localvideo)
  • Render as a mokojoomhero__slide div behind the video element
  • For <video> elements, also set the poster HTML attribute
  • For YouTube/Vimeo iframes, keep the image visible until the iframe fires a load event
  • Image should use the same cover/centre positioning as the slideshow

Acceptance Criteria

  • Poster image appears immediately on page load
  • Video plays over the poster once loaded
  • Works for local video, YouTube, and Vimeo modes
  • No visible flash between poster and video
## Summary Add a poster/fallback image that displays while the background video is loading. Currently the hero shows the overlay colour or nothing until the video stream begins. ## Requirements - New `videoPoster` media field (type images, showon heroMode:video,localvideo) - Render as a `mokojoomhero__slide` div behind the video element - For `<video>` elements, also set the `poster` HTML attribute - For YouTube/Vimeo iframes, keep the image visible until the iframe fires a load event - Image should use the same cover/centre positioning as the slideshow ## Acceptance Criteria - [ ] Poster image appears immediately on page load - [ ] Video plays over the poster once loaded - [ ] Works for local video, YouTube, and Vimeo modes - [ ] No visible flash between poster and video
jmiller added the enhancementjoomla labels 2026-06-04 12:03:43 +00:00
Author
Owner

Branch created: feature/51-feat-video-poster-image-fallback

git fetch origin
git checkout feature/51-feat-video-poster-image-fallback
Branch created: [`feature/51-feat-video-poster-image-fallback`](https://git.mokoconsulting.tech/MokoConsulting/MokoJoomHero/src/branch/feature/51-feat-video-poster-image-fallback) ```bash git fetch origin git checkout feature/51-feat-video-poster-image-fallback ```
Sign in to join this conversation.
No labels enhancement joomla
Type
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomHero#51