properties
changelog

Background Attachment

Control background attachment behavior, fixed or scroll.

Usage:

  • @bg attachment-*;

Reference

shilp.config.js
/** @type {import('shilpcss/types').ShilpConfig} */
const shilpConfig = {
  source: "react",

  properties: {
    bg: {
      attachment: {
        property: "background-attachment: <v><i>;",
        values: {
          fixed: "fixed",
          scroll: "scroll",
          local: "local",
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: