properties
changelog

Scroll Behaviour

Control scroll behavior and other properties.

Usage:

  • @live scroll-*;
  • @live scroll-auto;
  • @live scroll-smooth;

Reference

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

  properties: {
    live: {
      scroll: {
        DEFAULT: {
          property: "scroll-behavior: <v><i>;",
          values: {
            auto: "auto",
            smooth: "smooth",
          },
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: