scrollIntoView
: ν΄λΉ μμμΌλ‘ μ΄λνλ λ©μλconst btnScrollTo = document.querySelector(".btn--scroll-to");
const section1 = document.querySelector("#section--1");
btnScrollTo.addEventListener('click', function(e){
section1.scrollIntoView({ behavior: 'smooth' });
});