UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

1 lines 875 B
{"version":3,"file":"globalStyle.mjs","names":[],"sources":["../../src/ScrollArea/globalStyle.ts"],"sourcesContent":["'use client';\n\nimport { createGlobalStyle, css } from 'antd-style';\n\n/**\n * Register animatable custom properties used by scroll-driven animations.\n *\n * Without @property registration, custom properties interpolate discretely,\n * which can cause visible snapping at scroll boundaries.\n */\nconst ScrollAreaGlobalStyle = createGlobalStyle(\n () => css`\n @property --lobe-scroll-area-fade-top {\n inherits: true;\n initial-value: 0;\n syntax: '<length>';\n }\n\n @property --lobe-scroll-area-fade-bottom {\n inherits: true;\n initial-value: 0;\n syntax: '<length>';\n }\n `,\n);\n\nexport default ScrollAreaGlobalStyle;\n"],"mappings":";;;;;;;;;;;AAUA,MAAM,wBAAwB,wBACtB,GAAG;;;;;;;;;;;;IAaV;AAED,0BAAe"}