Carregando…
Carregando…
Carregando…3D grid backdrop with animated rainbow light beams shooting from the edges (hyperspace effect).
$ npx kikitocn add warp-background@/lib/utilsmotionimport { WarpBackground } from "@/components/ui/cn/warp-background/WarpBackground";
export function WarpBackgroundExample() {
return (
<WarpBackground>
Warp Background
</WarpBackground>
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
children* | React.ReactNode | — | Conteúdo sobreposto ao fundo |
perspective | number | 100 | Perspectiva 3D em px |
beamsPerSide | number | 3 | Quantidade de feixes por lado |
beamSize | number | 5 | Tamanho de cada célula da grade (%) |
beamDelayMin | number | 0 | Atraso mínimo antes de repetir, em s |
beamDelayMax | number | 3 | Atraso máximo antes de repetir, em s |
beamDuration | number | 3 | Duração da subida do feixe, em s |
gridColor | string | 'var(--ks-rule)' | Cor das linhas da grade |
className | string | — | Classes CSS extras |
Grade 3D com feixes de luz subindo pelas 4 bordas
Parabéns pela promoção!
Seu trabalho duro valeu a pena. Estamos animados em ver você dar esse próximo passo.