framer motion
효과는 양쪽에서 다르지만 같은 논리로 슬라이더를 구현해야 했습니다. 원래는 페이지별로 코드를 작성했는데 반복되는 영역이므로 catch로 처리하도록 하겠습니다. const useSlider = <T>( data: T(), duration?: number, moveScale?: number, opacity?: boolean, type?: ‘spring’ | ‘linear’ | ‘tween’ | ‘inertia’, ): (index: number, direction: number, increase: () => void, decrease: () => void, animationVariant: Variants)=>{ … } 나중에 … Read more