GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

01Match highlight — locating the typed letters inside each suggestion and bolding that span

Finding the first indexOf of the query inside each suggestion and wrapping it in <mark> lets users verify 'my typed letters' at a glance. Case-insensitive matching via toLowerCase, highlighting every occurrence, and theming the mark from the token palette all come with it.

Best forProduct search, internal wikis

beforeinputCSS custom propertiesaria-expanded
Match highlight — locating the typed letters inside each suggestion and bolding that span
Open in a new tab

01 Match highlight — locating the typed letters inside each suggestion and bolding that span — Measured area 15.731% · moving frames 6/23Original by GODRICH · SCSS and React ship in the zip · Autocomplete Input: 9 Search Dropdowns

The post this demo lives in

Autocomplete Input: 9 Search Dropdowns - preview of all 9 demosAutocomplete Input: 9 Search DropdownsAutocomplete input, explained: Bolds where letters sit in each suggestion, debounces requests, cycles the list by keyboa See all demos in this post

If you like this effect - similar demos