[feat] landing: 솔루션 랜딩페이지 신규 — 히어로·데모·ROI 시뮬레이터 섹션, docker 서비스(:3100) 추가
This commit is contained in:
1 parent
25e13d7b01
commit
03c22f9474
43 files changed
+5172
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { useReducedMotion } from "motion/react"
|
||||
|
||||
// Toss 스타일 ease-out-expo 커브. 섹션 등장 애니메이션 공통.
|
||||
export const EASE_OUT_EXPO: [number, number, number, number] = [0.16, 1, 0.3, 1]
|
||||
|
||||
/** 스크롤 진입 시 fade-up 프리셋. motion.* 컴포넌트에 스프레드해서 쓴다. */
|
||||
export function useFadeUp(delay = 0) {
|
||||
const shouldReduceMotion = useReducedMotion()
|
||||
return {
|
||||
initial: shouldReduceMotion ? { opacity: 1, y: 0 } : { opacity: 0, y: 48 },
|
||||
whileInView: { opacity: 1, y: 0 },
|
||||
viewport: { once: true, margin: "-120px" as const },
|
||||
transition: { duration: 0.8, delay, ease: EASE_OUT_EXPO },
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user