Background

Background Attachment

Style syntax for setting whether position of background image is fixed when scrolling.

🚧This page is still under construction and some content may not be complete.

Overview [sr-only]

ClassDeclarations
background-attachment:value / background:value / bg:valuebackground-attachment: value
bg:fixedbackground-attachment: fixed
bg:localbackground-attachment: local
bg:scrollbackground-attachment: scroll

Conditionally apply

Apply styles in different states using selectors, media queries, etc.

<div class="background-attachment:scroll:hover background-attachment:scroll@sm background-attachment:scroll@dark background-attachment:scroll@print"></div>
PREVIOUS
Background

Style syntax for setting all background style properties at once.

NEXT
Background Blend Mode

Style syntax for setting how an element's background images should blend with the background color.

MIT License © Aoyue Design LLC.