CSS gradient text, outline and glow effects
Gradient text, outline text, glows, image fills and long shadows, all in CSS. The code for each, how to stop gradient text showing as a solid block, and how to keep it readable.
Topic
Practical guides to modern CSS effects and the properties behind them.
15 articles
Gradient text, outline text, glows, image fills and long shadows, all in CSS. The code for each, how to stop gradient text showing as a solid block, and how to keep it readable.
An endlessly scrolling row of client logos needs no slider plugin. Here is the duplicate-list trick that makes a CSS marquee seamless, with pause on hover, faded edges and accessible fallbacks.
Arches, hexagons, diagonals, blobs and waves: how to shape images with border-radius, clip-path and mask, keep a gallery consistent, and add a shadow that follows the shape.
A CSS loading spinner should animate only transform, announce itself to screen readers and respect reduced motion. Copy-ready code, the accessibility checklist, and when to show a spinner at all.
How to put an SVG in a CSS background as a URL-encoded data URI, which characters to encode, why it beats Base64, and how to recolour icons with mask and currentColor.
How linear, radial and conic gradients work in CSS, with copy-ready code for stripes, pie charts, text overlays and gradient borders, and how to stop blends turning muddy.
What every letter in an SVG path's d attribute means: move, line, cubic and quadratic curves, arcs and close path, absolute versus relative coordinates, and how the arc flags work.
Add a frosted glass effect to an Elementor container with a few lines of CSS. Steps for Elementor Pro and the free version, with code to copy and fixes for when it doesn’t show.
Add shine, fill, glow and animated border hover effects to Divi buttons with a few lines of CSS. Steps for Divi 5’s Free-Form CSS and Divi 4, plus the setting that stops them working.
Enjoying Refract Tools? ☕️
Refract is a personal project built to make design and development a little easier, with practical, intuitive tools that help you work smarter, without AI doing the work for you.
If you find the tools useful, consider buying me a coffee. Every bit of support helps me keep building, improving, and sharing more free tools with the community.
Thanks for being here! ❤️
Buy me a coffee