# sgapps-scroller -- Transform-based Scroll Container Links: [Home](../index.md) A zero-size custom element that turns any `overflow: hidden` box into a wheel- and drag-scrollable area: it moves the content with a generated `transform` rule instead of a native scrollbar, exposes the position through `element.attrdata.SGAppsScroller` and reports every change with a bubbling `sgapps-scroll` DOM event. Written by SGApps.IO. ## Overview `custom-elements/scroller` registers the tag `` with the framework's `custom-elements` module. The element is a **marker**, not a wrapper: you put it as the first child of the box you want to scroll and leave the content next to it. When the element is initialised (`__onInit`) it: 1. gives itself a random `attr-sgapps-scroller-id` attribute (a new value on every init), 2. remembers `node.parentNode` as the **container** and appends a `
` to itself that will hold the generated stylesheets, 3. builds a `