Skip to content

Fix: hide YouTube controls on the landing page background video - #13

Merged
ftaakash merged 1 commit into
mainfrom
fix/landing-video-controls
Oct 16, 2026
Merged

ftaakash merged 1 commit into
mainfrom
fix/landing-video-controls

Conversation

@ftaakash

Copy link
Copy Markdown
Owner

The landing page's background video showed YouTube's play/pause/skip overlay on load (and on loop/end). That overlay lives inside the cross-origin embed and can't be hidden with CSS.

The video now uses the YouTube IFrame Player API:

  • invisible until it has been playing for 2.5 s (YouTube's start-up controls have faded by then), then fades in
  • hidden whenever it isn't playing (unstarted, paused, cued, ended), and restarted
  • loops itself 1.5 s before the end, so the end screen never shows
  • users with reduced motion get the static background

Checked in the browser: plain background at 1 s and 3 s after load, video playing with no controls at 7 s. Typecheck and lint clean.

YouTube draws its own play/pause/skip overlay inside the embed when it loads, pauses or ends,
which can't be styled from our page. The video is now driven by the IFrame Player API: it stays
invisible until it has been playing for 2.5 s, hides whenever it isn't playing, and loops itself
before the end screen. Reduced-motion users get the static background.
@vercel

vercel Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
skill-graph Ready Ready Preview Oct 16, 2026 6:16pm UTC

@ftaakash
ftaakash merged commit a36c4ae into main Oct 16, 2026
4 checks passed
@ftaakash
ftaakash deleted the fix/landing-video-controls branch October 16, 2026 18:35

This branch was successfully deployed

1 active deployment
Preview — 2c024ccb Deployed Oct 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant