1 estrella en GitHub = 1 componente nuevo.

Dar una estrella
Tipografía typographyheadingshadow

Text Shadow Reveal

Efecto de texto que emerge de las sombras con iluminación progresiva al pasar el ratón.

Vista Previa en Vivo

Text Shadow Reveal

Uso

Copia y pega este código directamente en tu página de Astro:

astro
---
import { TextShadowReveal } from 'astro-component-kit';
---

<ShadowRevealText>Content</ShadowRevealText>
--- import { TextShadowReveal } from 'astro-component-kit'; --- <ShadowRevealText>Content</ShadowRevealText>

Instalación Manual

Si no estás usando el paquete npm, crea un archivo nuevo y pega el siguiente código: src/components/lib/TextShadowReveal.astro:

astro
---
---
<h2 class="rev-text"><slot /></h2>
<style>
  .rev-text { font-size: 3.5rem; font-weight: 900; color: #fff; text-shadow: 4px 4px 0px rgba(99,102,241,0.3), 8px 8px 0px rgba(0,0,0,0.5); margin: 0; line-height: 1.1; }
  @media (max-width: 768px) { .rev-text { font-size: 2rem; } }
</style>
--- --- <h2 class="rev-text"><slot /></h2> <style> .rev-text { font-size: 3.5rem; font-weight: 900; color: #fff; text-shadow: 4px 4px 0px rgba(99,102,241,0.3), 8px 8px 0px rgba(0,0,0,0.5); margin: 0; line-height: 1.1; } @media (max-width: 768px) { .rev-text { font-size: 2rem; } } </style>

Información Rápida

Categoría
Tipografía
Nombre de archivo
TextShadowReveal.astro
Dependencias
Ninguna — Astro nativo + CSS puro
Etiquetas
typographyheadingshadow