사용법




인터페이스
ParallaxLayerProps
| 속성 | 타입 | 기본값 | 설명 |
|---|---|---|---|
| speed | number | 0.3 | 패럴랙스 강도 (0~1) |
| axis | "y" | "x" | y | 이동 축 |
| className | string | — | 루트 클래스 |
| style | CSSProperties | — | 인라인 스타일·CSS 변수 |
ParallaxLayer 컴포넌트 Props 표
가져오기
모션 CSS는 @goldtreedev/ui/motion.css를 함께 import해요.
@import "@goldtreedev/ui/motion.css";
import { ParallaxLayer } from "@goldtreedev/ui";