32 CSS Search Box & Search Bar Designs
Focus Ring Bloom
A soft expanding violet halo blooms outward when the input gains focus — disappears smoothly on blur.
Focus Ring Bloom the 27th of 32 designs in the 32 CSS Search Box & Search Bar Designs collection. The design is implemented in pure CSS — no JavaScript required. Copy the HTML and CSS panels below into your project. Because the demo is pure CSS, it works in any framework or templating engine you happen to use. The design honours prefers-reduced-motion and uses real semantic markup, so it ships accessibility-ready out of the box.
Live preview
The code
<form class="csb-bloom" role="search"> <label class="csb-sr" for="csb-bloom-i">Search</label> <input id="csb-bloom-i" type="search" name="q" placeholder="Search..." /> </form>
.csb-bloom {
position: relative; display: inline-block;
}
.csb-bloom input {
width: 240px; padding: 11px 14px;
background: #1a1a28;
border: 1px solid rgba(255,255,255,0.08);
border-radius: 10px;
color: #f0eeff; font: 500 14px/1 system-ui, sans-serif;
outline: none;
transition: border-color 0.2s;
}
.csb-bloom input::placeholder { color: #b8b6d4; }
.csb-bloom::after {
content: ''; position: absolute; inset: 0;
border-radius: 10px;
pointer-events: none;
box-shadow: 0 0 0 0 rgba(124,108,255,0.6);
}
.csb-bloom:focus-within input { border-color: #7c6cff; }
.csb-bloom:focus-within::after {
animation: csb-bloom-pulse 1.6s ease-out infinite;
}
@keyframes csb-bloom-pulse {
0%,100% { box-shadow: 0 0 0 0 rgba(124,108,255,0.6); }
50% { box-shadow: 0 0 0 8px rgba(124,108,255,0); }
}
.csb-sr {
position: absolute !important;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
@media (prefers-reduced-motion: reduce) {
.csb-bloom,
.csb-bloom * {
animation: none !important;
}
}
More from 32 CSS Search Box & Search Bar Designs
Tagged FilterRecent SearchesInline Loading BarCombo with ScopeMinimal UnderlinePill with SubmitGlass SearchNeon OutlineFloating LabelCaret HighlightClear-on-TypeKeyboard Hint
View the full collection →