Skip to content

Commit

Permalink
chore : 반복되는 useScroll offset 합치기
Browse files Browse the repository at this point in the history
  • Loading branch information
f0rever0 committed Nov 24, 2023
1 parent e33a678 commit 62c8892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/MainPage/components/Introduce/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function Introduce() {
const contentRef = useRef<HTMLElement>(null);
const { scrollYProgress } = useScroll({
target: contentRef,
offset: ['end center', 'start start'],
offset: ['end center', 'start'],
});

const scaleValue = useTransform(scrollYProgress, [1, 0.4], [0.9, 1]);
Expand Down

0 comments on commit 62c8892

Please sign in to comment.