Visual Affordances for Scroll

How CSS scroll-state queries can help users understand that a box is scrollable. The power of scroll-state queries here is the ability to dynamically apply an affordance.

Bad Example

A scrollable area with no visual affordances unless scrollbars are set to visible in the OS.

One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten

Classic Example

Border, background and cutoff visual affordances. No scroll-state queries as the effect is permanent.

One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten

scroll-state() Example 1

A shadow visual affordance to indicate scroll

One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten

scroll-state() Example 2

An arrow visual affordance to indicate scroll

One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten

scroll-state() Example 3

A scroll-to-top affordance

One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten