Glass
Text
Type
Colour
Ground
Motion
Clear view
About this effect
Glass makes your words out of clear, tinted glass. The letters are almost transparent, darker and more saturated at their edges where the glass is thickest, with bright bevels that catch the light. Beside them, the light that passes through falls on the ground as a soft coloured cast with a bright core, the way a glass on a table throws a coloured shadow. The light swings slowly overhead, so the glints slide round the bevels and the cast swings with them.
The glass is the heading itself, nearly transparent, through an SVG filter that lights a blurred copy of its shape for the bevels and finds its edges for the tint. The cast is a hidden copy behind, through a second filter that spreads it and brightens its middle. A few lines of script move the light, sized from the font. It follows the light and dark themes: on a light page the cast reads like sunlight through a bottle.
Use it for a product launch, a fintech or health brand, or anywhere clean and premium. Rounded, heavy letters show the bevels best.
- Formats
- React, HTML
- No dependencies
- Built with
- SVG and CSS
- Default font Outfit
- Plays
- Loop, In view, On load, Hover
- Reduced motion
- Respected
- Shows the finished frame
Accessibility. A plain heading: screen readers read the text as it is, and the cast is a hidden copy. Under reduced motion the light rests up and to the left.
Also known as glass text effect, glass text css, glassmorphism text, transparent text, crystal text, refraction text.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.