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

04Recent-search chips — recomputing stored timestamps into '3 min ago, 2 days ago' labels

Stacking queries with timestamps in localStorage and recomputing the delta on every open yields recent-search chips labeled with true relative times. Duplicate queries bump only their timestamp to the front, and deleting a chip collapses the rest with a scale tween.

Best forCommerce search, content sites

localStoragetransform: scaleCSS custom properties
Recent-search chips — recomputing stored timestamps into '3 min ago, 2 days ago' labels
Open in a new tab

04 Recent-search chips — recomputing stored timestamps into '3 min ago, 2 days ago' labels — Measured area 7.149% · moving frames 7/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