CSS button hover effects that feel good (and stay accessible)
Four CSS button hover effects to copy (shine, fill, animated border and lift), how the pseudo-element technique works, and the accessibility details most snippets miss.
Topic
Practical guides to modern CSS effects and the properties behind them.
15 articles
Four CSS button hover effects to copy (shine, fill, animated border and lift), how the pseudo-element technique works, and the accessibility details most snippets miss.
CSS has no mesh gradient function, but layered radial gradients get you the same soft, flowing look in a few hundred bytes. Here is how they work, how to pick colours, and how to animate them.
Grain gives flat gradients a tactile, printed feel and hides colour banding. Here is how to add it with an SVG feTurbulence filter, a pseudo-element and the right blend mode.
Scroll-driven animations link CSS keyframes to scrolling instead of time. Here is how view(), scroll() and animation-range work, with copy-ready reveal and progress bar code and safe fallbacks.
One box-shadow looks flat. Layering several soft shadows, each larger and fainter than the last, gives depth that looks like real light. Here is how, with an elevation scale you can reuse.
How backdrop-filter creates frosted glass in CSS, the settings that look right, and the support, contrast and performance details most snippets leave out.
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