1 estrella en GitHub = 1 componente nuevo.

Dar una estrella
Tipografía typography3dcreative

3D Stacked Text

Capas tipográficas superpuestas que generan un efecto de profundidad tridimensional 3D.

Vista Previa en Vivo

Uso

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

astro
---
import { 3DStackedText } from 'astro-component-kit';
---

<Text3DLayer>3D TEXT</Text3DLayer>
--- import { 3DStackedText } from 'astro-component-kit'; --- <Text3DLayer>3D TEXT</Text3DLayer>

Instalación Manual

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

astro
---
---
<div class="stack-3d"><slot /></div>
<style>
  .stack-3d { font-size: 4rem; font-weight: 900; color: #fff; position: relative; text-shadow: 1px 1px #6366f1, 2px 2px #6366f1, 3px 3px #6366f1, 4px 4px #6366f1; line-height: 1.1; }
  @media (max-width: 768px) { .stack-3d { font-size: 2.5rem; } }
</style>
--- --- <div class="stack-3d"><slot /></div> <style> .stack-3d { font-size: 4rem; font-weight: 900; color: #fff; position: relative; text-shadow: 1px 1px #6366f1, 2px 2px #6366f1, 3px 3px #6366f1, 4px 4px #6366f1; line-height: 1.1; } @media (max-width: 768px) { .stack-3d { font-size: 2.5rem; } } </style>

Información Rápida

Categoría
Tipografía
Nombre de archivo
3DStackedText.astro
Dependencias
Ninguna — Astro nativo + CSS puro
Etiquetas
typography3dcreative