Pular para o conteúdo
Skillpedia
Sites e telas (frontend)7,2 mil · #13393

add-shader-cursor-trail

O que ela faz

Esta skill orienta um agente de IA a acrescentar um efeito de shader a uma página web, em que o cursor deixa um rastro suave de pontos. Ela serve para designers e desenvolvedores que querem um hero interativo marcante, com uma alternativa simples para os outros visitantes.

Quando usar

  • ✓Quando você quer um rastro pontilhado ou de meio-tom que siga o cursor em uma seção hero.
  • ✓Quando uma página precisa de um efeito de shader WebGPU que fique desligado em celulares e para usuários com movimento reduzido.
  • ✓Quando você quer o efeito acrescentado sem alterar o texto ou as imagens da seção.

Link da skill

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/add-shader-cursor-trail/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/add-shader-cursor-trail/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Acrescente um efeito de rastro de meio-tom ao cursor na minha seção hero, com uma imagem estática para celulares.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente instala o pacote do shader e posiciona uma camada de efeito em largura total atrás do conteúdo da página. Carrega o efeito somente em navegadores de desktop capazes e o pausa quando a seção sai da tela.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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.

Perguntas frequentes

O que os visitantes de celular veem?

A skill mantém a imagem estática original ou o primeiro quadro para dispositivos de toque e para visitantes que preferem menos movimento.

Vai deixar a página mais lenta?

A skill carrega o shader somente quando necessário e o interrompe quando a seção sai da tela.

Funciona em todos os navegadores?

Não. Depende do suporte ao WebGPU, por isso a skill inclui uma alternativa para navegadores que não o têm.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
7,2 mil
Posição no ranking
#13393
Licença
MIT
Atualizada em
01/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas