Skip to content

fix: hold the demo videos on frame one under reduced motion - #44

Open
thejesh23 wants to merge 1 commit into
Nutlope:mainfrom
thejesh23:fix/reduced-motion-looping-videos
Open

fix: hold the demo videos on frame one under reduced motion#44
thejesh23 wants to merge 1 commit into
Nutlope:mainfrom
thejesh23:fix/reduced-motion-looping-videos

Conversation

@thejesh23

Copy link
Copy Markdown

Fixes #43

The two demo loops are <video autoplay loop> with no poster, and nothing paused them when prefers-reduced-motion: reduce was set — the existing reduced-motion video rule targets .ex-card__thumb (no such element ships) and sets animation-play-state, which does not stop media playback.

Parks them on the first frame instead, reusing the static-preview treatment the hover-play videos above already get, so the block sits next to the code it mirrors.

Verified locally: the selector matches both videos, and after the block runs each one reports autoplay removed, loop: false, paused: true, currentTime: 0. No console errors, and the default (motion-on) path is unchanged.

Both demo loops are <video autoplay loop> with no poster, and nothing
pauses them when prefers-reduced-motion is set — the only reduced-motion
video rule targets .ex-card__thumb (no such element ships) and sets
animation-play-state, which does not stop media playback. Park them on
the first frame instead, matching the static-preview treatment the
hover-play videos already get.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

@thejesh23 is attempting to deploy a commit to the Together AI Team on Vercel.

A member of the Team first needs to authorize it.

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.

Demo videos keep looping under prefers-reduced-motion

1 participant