본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)75k · #3075

video-thumbnail

하는 일

이 스킬은 웹페이지의 영상 플레이어에 포스터 썸네일 이미지를 추가합니다. 영상이 세련되게 보이고 로드되는 동안 레이아웃이 흔들리지 않기를 원하는 사이트 운영자와 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓재생 전에 영상이 빈 검은 사각형으로 보일 때.
  • ✓video 요소에 poster 속성이 없을 때.
  • ✓영상이 로드되는 동안 페이지 레이아웃이 흔들릴 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/video-thumbnail/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/video-thumbnail/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 영상은 재생 버튼을 누르기 전까지 검은 상자로만 보입니다. 각 영상의 내용을 보여 주는 썸네일을 추가해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 영상의 비율에 맞는 썸네일 이미지로 poster 속성을 추가합니다. 또한 이미지가 로드되는 동안 레이아웃이 움직이지 않도록 영상의 크기를 설정합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Add thumbnail images to videos

Without a poster image, a <video> element displays as a blank black rectangle until the first frame is loaded. This is visually jarring, provides no context about the video content, and can cause layout shift (CLS) if the video dimensions are not specified separately. A good thumbnail image communicates the video topic at a glance, allows users to decide whether to play, and improves the page's visual quality — especially on slow connections where video preloading is delayed.

Quick Reference

  • Add a poster attribute to <video> elements with a URL to a representative thumbnail image
  • The poster image displays before the video loads and while the user decides whether to play
  • Poster images improve perceived performance by showing meaningful content before video data arrives
  • The poster should accurately represent the video content — deceptive thumbnails violate user trust
  • Use an image ratio matching the video's aspect ratio (typically 16:9) and a resolution of at least 1280×720

Check

Find all <video> elements. For each, check that: (1) a poster attribute is present with a non-empty URL; (2) the URL resolves to a valid image (no 404s); (3) the width and height attributes or CSS dimensions are set to prevent layout shift while the poster loads; (4) the poster image accurately represents the video content (not a clickbait or unrelated image).

Fix

(1) Add a poster attribute to each <video> element: <video poster='thumbnail.jpg' controls>. (2) Use an image that represents the video content — typically a frame from the video, a title card, or a branded thumbnail. (3) Ensure the poster image has the same aspect ratio as the video (usually 16:9). (4) Recommended poster dimensions: 1280×720px minimum for HD video; 640×360px is acceptable for smaller embeds. (5) Host the poster image at a CDN-cached URL to ensure fast loading. (6) Also set width and height on the <video> element to prevent CLS.

Explain

The HTML poster attribute on <video> specifies a URL for an image to display before video playback begins. When preload='none' or preload='metadata' is set (recommended for performance — avoids downloading video data on page load), no video frame is available for display, making the poster image the only visual content visible to the user before play. Without a poster, users see either a black rectangle or a browser-rendered blank video frame, which provides no context. The poster also plays a role in perceived performance — users on slow connections see meaningful content immediately rather than waiting for even the first video frame to load.

Code Review

Review templates, server-rendered HTML, and shared components that output markup related to Add thumbnail images to videos. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/html/video-thumbnail

자주 묻는 질문

썸네일은 어느 크기여야 하나요?

스킬은 영상의 모양에 맞추어 최소 1280×720픽셀의 16:9 이미지를 제안합니다.

썸네일이 오해를 부를 수 있나요?

스킬에 따르면 포스터는 영상 내용을 정확히 보여 주어야 하며, 오해를 부르는 썸네일은 신뢰를 해칩니다.

포스터가 자막을 대신하나요?

아닙니다. 스킬에 따르면 포스터는 디자인과 성능을 돕는 요소이며, 자막이나 음성 해설과는 별개입니다.

상세 정보

작성자의 원본 설명

Use when applies to all `<video>` elements in HTML. The `poster` attribute specifies the URL of an image to show as a placeholder before the video is loaded or played. This is distinct from captions or audio descriptions, which are accessibility requirements. The poster is primarily a UX and performance enhancement, though the lack of a poster can indirectly create a CLS (Cumulative Layout Shift) issue if video dimensions are not declared.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#3075
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬