<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-customizable-select---part-four-scroll-snapping-state-queries-monster-hunter-and-gamificatio-y8u9814e2" -->

---
title: The customizable select - Part four: Scroll snapping,...
description: A deep-dive into building a Monster Hunter Wilds-inspired customizable select element using the emerging appearance: base-select CSS feature, anchor...
canonical: https://daily.dev/posts/the-customizable-select---part-four-scroll-snapping-state-queries-monster-hunter-and-gamificatio-y8u9814e2
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The customizable select - Part four: Scroll snapping, state queries, monster hunter, and gamification | daily.dev
og:description: A deep-dive into building a Monster Hunter Wilds-inspired customizable select element using the emerging appearance: base-select CSS feature, anchor...
og:url: https://daily.dev/posts/the-customizable-select---part-four-scroll-snapping-state-queries-monster-hunter-and-gamificatio-y8u9814e2
og:image: https://api.daily.dev/og/posts/y8u9814e2.png
og:image:alt: The customizable select - Part four: Scroll snapping, state queries, monster hunter, and gamification
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The customizable select - Part four: Scroll snapping, state queries, monster hunter, and gamification

**[utilitybend](https://daily.dev/sources/utilitybend)** · 16 min read · 0 upvotes · 0 comments

## Summary

A deep-dive into building a Monster Hunter Wilds-inspired customizable select element using the emerging appearance: base-select CSS feature, anchor positioning, scroll-snap on the x-axis, and experimental scroll-state container queries. Covers the HTML structure (trigger button, frame, arrows), CSS for creating a 'behind glass' frame effect with anchoring, and JavaScript for drag-to-scroll, the new scrollsnapchange event, keyboard navigation fixes, and arrow button state management. Closes with accessibility caveats, noting the snap-to-select interaction is unconventional and better suited to playful UI than everyday forms.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://utilitybend.com/blog/the-customizable-select-part-four-scroll-snapping-state-queries-monster-hunter-and-gamification>

## Questions this post answers

### How do I detect when an item snaps into place with CSS scroll-snap using JavaScript?

Use the scrollsnapchange event, which fires on the scroll container when an item snaps into position. The event exposes event.snapTargetInline, giving direct access to the snapped element, which can then be focused or tracked for selection logic without manually calculating scroll offsets.

_daily.dev surfaces practical scroll-snap and event-handling techniques like this for developers building custom UI._

### How can I use CSS scroll-state container queries to detect a snapped element?

Set container-type: scroll-state on the option element, then use @container scroll-state(snapped: inline) to apply styles, such as scaling an icon up to full size, only when that specific item is snapped to the scroll container's center, all wrapped in an @supports check since the feature is experimental.

_Developers experimenting with scroll-state queries can track evolving CSS support notes on daily.dev._

### How do I style a native HTML select element with appearance: base-select in CSS?

Wrap the styling in a feature query, @supports (appearance: base-select), then apply appearance: base-select to both the select element and ::picker(select). This opt-in unlocks styling of the picker popover, selectedcontent, and option checkmarks that were previously inaccessible on native select elements.

_Anyone customizing native form controls can follow ongoing CSS select styling techniques on daily.dev._

## Similar posts on daily.dev

- [Nice Select · February 3, 2026](https://daily.dev/posts/nice-select-february-3-2026-d8jdnzuo9) · Adam Argyle · 3 upvotes · 0 comments
- [Abusing Customizable Selects](https://daily.dev/posts/abusing-customizable-selects-hyfhou2vz) · CSS-Tricks · 14 upvotes · 1 comments
- [State, Logic, And Native Power: CSS Wrapped 2025 — Smashing Magazine](https://daily.dev/posts/state-logic-and-native-power-css-wrapped-2025-smashing-magazine-b6eihwfpt) · Smashing Magazine · 5 upvotes · 0 comments
- [Chris’ Corner: All Together Now](https://daily.dev/posts/chris-corner-all-together-now-1to1nbq6p) · CodePen · 52 upvotes · 3 comments

---

Tags: [#css](https://daily.dev/tags/css), [#accessibility](https://daily.dev/tags/accessibility)

[View this post on daily.dev](https://daily.dev/posts/the-customizable-select---part-four-scroll-snapping-state-queries-monster-hunter-and-gamificatio-y8u9814e2)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The customizable select - Part four: Scroll snapping, state queries, monster hunter, and gamification","url":"https://daily.dev/posts/the-customizable-select---part-four-scroll-snapping-state-queries-monster-hunter-and-gamificatio-y8u9814e2","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-customizable-select---part-four-scroll-snapping-state-queries-monster-hunter-and-gamificatio-y8u9814e2"},"datePublished":"2026-09-20T07:43:35.697Z","dateModified":"2026-09-20T07:44:55.420Z","description":"A deep-dive into building a Monster Hunter Wilds-inspired customizable select element using the emerging appearance: base-select CSS feature, anchor...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2255add5cabc02edafe0b37e79802d4e?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2255add5cabc02edafe0b37e79802d4e?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"utilitybend","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"utilitybend","logo":"https://media.daily.dev/image/upload/s--hONVFSz4--/f_auto,q_auto/v1789890196/logos/utilitybend?_a=BAMAMicg0","url":"https://daily.dev/sources/utilitybend"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/the-customizable-select---part-four-scroll-snapping-state-queries-monster-hunter-and-gamificatio-y8u9814e2","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css,accessibility","timeRequired":"PT16M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"utilitybend","item":"https://daily.dev/sources/utilitybend"},{"@type":"ListItem","position":3,"name":"The customizable select - Part four: Scroll snapping, state queries, monster hunter, and gamification"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/the-customizable-select---part-four-scroll-snapping-state-queries-monster-hunter-and-gamificatio-y8u9814e2#faq","mainEntity":[{"@type":"Question","name":"How do I detect when an item snaps into place with CSS scroll-snap using JavaScript?","acceptedAnswer":{"@type":"Answer","text":"Use the scrollsnapchange event, which fires on the scroll container when an item snaps into position. The event exposes event.snapTargetInline, giving direct access to the snapped element, which can then be focused or tracked for selection logic without manually calculating scroll offsets. daily.dev surfaces practical scroll-snap and event-handling techniques like this for developers building custom UI."}},{"@type":"Question","name":"How can I use CSS scroll-state container queries to detect a snapped element?","acceptedAnswer":{"@type":"Answer","text":"Set container-type: scroll-state on the option element, then use @container scroll-state(snapped: inline) to apply styles, such as scaling an icon up to full size, only when that specific item is snapped to the scroll container's center, all wrapped in an @supports check since the feature is experimental. Developers experimenting with scroll-state queries can track evolving CSS support notes on daily.dev."}},{"@type":"Question","name":"How do I style a native HTML select element with appearance: base-select in CSS?","acceptedAnswer":{"@type":"Answer","text":"Wrap the styling in a feature query, @supports (appearance: base-select), then apply appearance: base-select to both the select element and ::picker(select). This opt-in unlocks styling of the picker popover, selectedcontent, and option checkmarks that were previously inaccessible on native select elements. Anyone customizing native form controls can follow ongoing CSS select styling techniques on daily.dev."}}]}
```

