Blur Effect
Point at one button and the others blur, so your eye goes straight to it.
Captures of the repository's test page, with a real cursor.
What it's for
Small details show care. The challenge was to highlight the right option without making the page any heavier.
What I did
An effect made with just HTML and CSS, no extra code. The demo on this page is the real effect in action: hover or tap it.
Details
- Type
- Interface detail
- Year
- 2024
- Status
- Open source · code snippet
- Made with
- HTML and CSS.
Code
In practice
.btns:hover .btn:not(:hover) {
transform: scale(0.8);
opacity: 0.8;
filter: blur(4px);
}