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

css-alpha-masking

하는 일

이 스킬은 요소의 위, 아래, 왼쪽, 오른쪽 가장자리를 부드럽게 흐리게 하는 CSS 코드를 AI 에이전트에게 제공합니다. 이미지나 패널이 끝에서 딱 끊기지 않고 부드럽게 사라지기를 원하는 웹 제작자를 위한 스킬입니다.

사용하는 경우

  • ✓이미지나 패널이 가장자리에서 갑자기 끝나지 않고 흐려지며 사라지길 원할 때.
  • ✓스크롤 띠나 텍스트 영역의 위나 아래에 부드러운 가장자리가 필요할 때.
  • ✓Safari에서도 작동하는 가장자리 페이드가 필요한 경우.

스킬 링크

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/css-alpha-masking/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/css-alpha-masking/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분.

작동 방식

에이전트는 투명에서 불투명으로 그리고 다시 투명으로 가는 그라데이션을 가진 CSS 마스크를 추가합니다. 표준 속성과 Safari용 버전을 모두 포함하며, 페이드의 깊이를 조정할 수 있습니다.

기술 내용 (원본 SKILL.md)

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

CSS Alpha Masking Skill

Workflow

  1. Confirm direction (horizontal or vertical) and fade stop percentages.
  2. Provide the inline CSS snippet and any needed class usage.
  3. Offer small tweaks only (direction, stop positions, colors).

Usage checklist

  • Apply the mask styles directly on the element or in a CSS class.
  • Always include both mask-image and -webkit-mask-image for Safari.
  • Ensure the element has visible content; masks reveal/hide alpha only.

Horizontal (left/right) fade

/* Add this inline CSS to any element */
mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
-webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);

Vertical (top/bottom) fade

/* Add this inline CSS to any element */
mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
-webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);

Customization knobs

  • Direction: to right, to left, to bottom, to top.
  • Fade depth: adjust 15% and 85% stops.
  • Strength: change transparent to rgba(0,0,0,0.2) for softer fades.

Common pitfalls

  • Forgetting the -webkit-mask-image fallback in Safari.
  • Expecting masks to work on elements with overflow: hidden but no visible content behind.

Questions to ask when specs are missing

  • Which direction should the fade go?
  • How wide should the fade edges be?
  • Is this for images, text, or a container background?
자주 묻는 질문

CSS 마스크란 무엇인가요?

그라데이션을 기준으로 요소의 일부를 숨기는 CSS 설정입니다. 그래서 요소가 잘리는 대신 흐려지며 사라집니다.

코드가 왜 두 줄인가요?

Safari는 효과를 보여 주기 위해 Safari 전용 버전이 필요하므로 그것도 포함합니다.

페이드가 보이지 않는 이유는 무엇인가요?

마스크는 이미 있는 내용을 숨기거나 드러내기만 하므로, 요소에 보이는 내용이 있어야 한다고 이 스킬은 알려 줍니다.

상세 정보

작성자의 원본 설명

Apply CSS alpha masking with linear-gradient for horizontal or vertical edge fades (mask-image and -webkit-mask-image). Use when asked for alpha masks, fade edges, or CSS mask gradients.

repo: MengTo/Skills

인기도

GitHub 스타
7.2k
순위
#13418
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬