1 estrella en GitHub = 1 componente nuevo.

Dar una estrella
Tipografíatypographyshimmerglass

Glass Text Shimmer

Animación de revelado gradual de texto con efecto de desenfoque y brillo de cristal.

Vista Previa en Vivo

Glass Text Shimmer

Uso

Copia y pega este código directamente en tu componente React:

tsx
import { GlassTextReveal } from 'react-component-kit-ui/typography';

<GlassTextReveal>Content</GlassTextReveal>

Instalación Manual

Si no estás usando el paquete npm, crea un archivo nuevo y pega el siguiente código: src/components/GlassTextReveal.tsx + GlassTextReveal.css:

GlassTextReveal.tsx
'use client';

import type { ReactNode } from 'react';
import './GlassTextReveal.css';

/** GlassTextReveal — ported from astro-component-kit. */
export interface GlassTextRevealProps {
  children?: ReactNode;
}

export function GlassTextReveal({ children }: GlassTextRevealProps) {
  return (
    <>
      <h3 className="shimmer-txt" data-rk-ca8ede="">{children}</h3>
    </>
  );
}

export default GlassTextReveal;
GlassTextReveal.css
/* GlassTextReveal — ported from astro-component-kit (typography/GlassTextReveal.astro) */

.shimmer-txt:where([data-rk-ca8ede]) { font-size: 2rem; color: rgba(255,255,255,0.2); background: linear-gradient(90deg, transparent, #fff, transparent); background-size: 200% 100%; -webkit-background-clip: text; animation: glass-text-reveal-shimmer-anim 3s infinite linear; margin: 0; font-weight: 800; }
@keyframes glass-text-reveal-shimmer-anim { 0% { background-position: -100% 0; } 100% { background-position: 100% 0; } }

Información Rápida

Categoría
Tipografía
Nombre de archivo
GlassTextReveal.tsx
Dependencias
Ninguna — React + CSS puro
Etiquetas
typographyshimmerglass