You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useAnchorTarget 커스텀 훅을 이용하여 스크롤할 대상을 등록합니다.
어떠한 이벤트에서 스크롤할 대상으로 스크롤하게 하려면, scroller.to(스크롤할 대상의 name) 을 입력하여 자동으로 부드럽게 스크롤하도록 합니다.
리액트 특성상 ID를 사용하여 스크롤하면 id의 잠재적 중복 문제가 발생하며, window.scrollTo를 이용하고자 하면 스크롤할 대상의 절대적 위치를 변경 가능하다는 문제가 생기므로 제작하게 되었습니다.
어떤 기능인가요?
작업 상세 내용
참고 이미지 및 자료
https://github.com/fisshy/react-scroll/tree/master
The text was updated successfully, but these errors were encountered: