1 GitHub star = 1 new component.

Star the repo
Typography typographyshimmerglass

Glass Text Shimmer

Text that transitions from blurred to crisp.

Live Preview

Glass Text Shimmer

Usage

Copy and paste this code into your Astro page:

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

<GlassTextReveal>Content</GlassTextReveal>
--- import { GlassTextShimmer } from 'astro-component-kit'; --- <GlassTextReveal>Content</GlassTextReveal>

Manual Installation

If you are not using the npm package, create a new file and paste the following code: src/components/lib/GlassTextShimmer.astro:

astro
---
---
<h3 class="shimmer-txt"><slot /></h3>
<style>
  .shimmer-txt { 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: shimmer-anim 3s infinite linear; margin: 0; font-weight: 800; }
  @keyframes shimmer-anim { 0% { background-position: -100% 0; } 100% { background-position: 100% 0; } }
</style>
--- --- <h3 class="shimmer-txt"><slot /></h3> <style> .shimmer-txt { 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: shimmer-anim 3s infinite linear; margin: 0; font-weight: 800; } @keyframes shimmer-anim { 0% { background-position: -100% 0; } 100% { background-position: 100% 0; } } </style>

Quick Info

Category
Typography
Filename
GlassTextShimmer.astro
Dependencies
None — pure Astro + CSS
Tags
typographyshimmerglass