반응형 queryselectotall1 자연스로운 스크롤 이동 javascript와 html을 이용하여 진행을 하였습니다. 빠르게 코드 먼저 살펴보도록 하겠습니다. const animationMove = function(selector){ const targetEl = document.querySelector(selector); if (!targetEl) return; const browserScrollY = window.scrollY ? window.scrollY : window.pageYOffset; const targetScrollY = targetEl.getBoundingClientRect().top + browserScrollY; const rem = parseFloat(getComputedStyle(document.docume.. 2024. 10. 21. 이전 1 다음 반응형