backgroundAttachment

object backgroundAttachment extends Style[String]

If a background-image is specified, the background-attachment CSS property determines whether that image's position is fixed within the viewport, or scrolls along with its containing block.

If a background-image is specified, the background-attachment CSS property determines whether that image's position is fixed within the viewport, or scrolls along with its containing block.

MDN

class Style[String]
class Key
class Object
trait Matchable
class Any

Value members

Concrete fields

lazy val fixed: StyleSetter

This keyword means that the background image will not scroll with its containing element, instead remaining stationary within the viewport.

This keyword means that the background image will not scroll with its containing element, instead remaining stationary within the viewport.

MDN

lazy val local: StyleSetter

This keyword means that the background image will not scroll with its containing element, but will scroll when the element's content scrolls: it is fixed regarding the element's content.

This keyword means that the background image will not scroll with its containing element, but will scroll when the element's content scrolls: it is fixed regarding the element's content.

MDN

lazy val scroll: StyleSetter

This keyword means that the background image will scroll within the viewport along with the block the image is contained within.

This keyword means that the background image will scroll within the viewport along with the block the image is contained within.

MDN

Inherited fields

override val name: String
Inherited from
Style