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

add-shader-cursor-trail

하는 일

이 스킬은 커서가 부드러운 점선 잔상을 남기는 셰이더 효과를 웹 페이지에 추가하도록 AI 에이전트를 안내합니다. 인상적인 인터랙티브 히어로를 원하면서도 다른 방문자를 위한 단순한 대체 화면이 필요한 디자이너와 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓히어로 섹션에서 커서를 따라가는 점선이나 하프톤 잔상을 원할 때.
  • ✓휴대폰과 모션 줄이기 사용자에게는 꺼져 있어야 하는 WebGPU 셰이더 효과가 필요할 때.
  • ✓섹션의 텍스트나 이미지를 바꾸지 않고 효과를 추가하고 싶은 경우.

스킬 링크

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/add-shader-cursor-trail/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/add-shader-cursor-trail/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분.

작동 방식

에이전트는 셰이더 패키지를 설치하고, 페이지 내용 뒤에 전체 너비의 효과 레이어를 둡니다. 성능이 되는 데스크톱 브라우저에서만 효과를 불러오고, 섹션이 화면 밖에 있으면 멈춥니다.

기술 내용 (원본 SKILL.md)

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

Add Shader Cursor Trail

Implement the exact trail as progressive enhancement. Preserve the host section's semantic content, imagery, controls, and static first frame.

Workflow

  1. Inspect the framework, rendering mode, existing motion stack, layer order, reduced-motion rules, and package manager. Do not add another smooth-scroll engine or replace the section's content.
  2. Install shaders with the existing package manager. Import from the matching framework subpath: shaders/react, shaders/vue, shaders/svelte, or shaders/solid.
  3. Read references/implementation.md before implementation. Keep the six shader nodes, their order, both invisible drivers, and both ID linkages exact.
  4. For React or Next.js, copy and adapt the files in assets/react/. Keep the lightweight capability gate separate from the heavy shader module so ineligible visitors do not request the shader bundle.
  5. Place one full-bleed, aria-hidden="true" shader layer behind the section content. Keep links and controls above it. Do not set pointer-events: none on the canvas unless cursor tracking is verified to use global events.
  6. Gate loading on WebGPU, a fine hover pointer, normal motion/transparency preferences, document visibility, window focus, and section intersection. Unmount when the section leaves view so GPU work stops.
  7. Keep the original image or dark background as the complete fallback. Hide the layer for reduced motion, reduced transparency, coarse/no-hover pointers, and forced colors.
  8. Adapt only presentation variables such as opacity and blend mode. Do not change the graph to decorative noise, add WebGL/Three.js, or hotlink Shaders preview assets.

Validate

Run the project's lint, typecheck/tests, and production build. For React implementations, also run:

node /path/to/add-shader-cursor-trail/scripts/verify-cursor-trail.mjs \
  path/to/CursorTrailShader.tsx \
  path/to/CursorTrailGate.tsx \
  path/to/cursor-trail.css

Verify the static section with JavaScript unavailable, keyboard access to content above the layer, touch behavior, reduced motion, unsupported WebGPU, focus/visibility cleanup, and absence of runtime requests to previews.shaders.com or data.shaders.com.

Report the chosen blend mode, fallback, capability gates, production-build result, and any browser limitation. Do not claim WebGPU visual verification unless it was actually performed in a compatible browser.

자주 묻는 질문

휴대폰 방문자는 무엇을 보나요?

터치 기기와 모션 줄이기를 원하는 방문자에게는 원래의 정지 이미지나 첫 프레임을 유지합니다.

페이지가 느려지나요?

필요할 때만 셰이더를 불러오고, 섹션이 화면을 벗어나면 멈추므로 부담을 줄입니다.

모든 브라우저에서 작동하나요?

아닙니다. WebGPU 지원에 따라 달라지므로, 이를 지원하지 않는 브라우저를 위한 대체 화면이 포함되어 있습니다.

상세 정보

작성자의 원본 설명

Add the Shaders WebGPU mouse effect used for the Tidal Commons hero: a white twinkling halftone cursor trail driven by ChromaFlow, masked through a DotGrid, finished with chromatic ripples and film grain, and protected by static, touch, accessibility, SSR, and performance fallbacks. Use when a user asks for this shader mouse effect, a halftone cursor trail, an interactive WebGPU hero/contact background, or a reusable cursor-following shader layer in React, Next.js, Vue, Svelte, Solid, or plain web projects.

repo: MengTo/Skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬