gsap1 [JS] Uncaught typeError: Failed to execute 'scrollTo' on 'window': the provided value is not of type 'scrollToOptions'. 해결방법 1. 발생 에러 gsap으로 scrollTo를 이용하여 페이지 하단에서 위로 화살표를 클릭하면 자동으로 최상단으로 스크롤이 되는 기능을 개발하다가 다음과 같은 에러가 발생했다. 2. 코드 에러가 발생한 코드 부분은 다음과 같다 먼저 HTML 코드는 다음과 같다. arrow_upward css코드 다음과 같다. #to-top{ width: 42px; height: 42px; background-color: #333; color: #fff; border: 2px solid #fff; border-radius: 10px; cursor: pointer; display: flex; justify-content: center; align-items: center; position: fixed; bottom: 30p.. 2022. 4. 13. 이전 1 다음