@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
26 lines (24 loc) • 743 B
JavaScript
"use client";
import { createGlobalStyle, css } from "antd-style";
//#region src/base-ui/ScrollArea/globalStyle.ts
/**
* Register animatable custom properties used by scroll-driven animations.
*
* Without @property registration, custom properties interpolate discretely,
* which can cause visible snapping at scroll boundaries.
*/
const ScrollAreaGlobalStyle = createGlobalStyle(() => css`
@property --lobe-scroll-area-fade-top {
inherits: true;
initial-value: 0;
syntax: '<length>';
}
@property --lobe-scroll-area-fade-bottom {
inherits: true;
initial-value: 0;
syntax: '<length>';
}
`);
//#endregion
export { ScrollAreaGlobalStyle as default };
//# sourceMappingURL=globalStyle.mjs.map