javascript - Is it possible to make a smooth scroll to part of a webpage, even if the scrolling is disabled? -
i have used js stop scrolling:
<script> window.onscroll = function () { window.scrollto(0,0); } </script>
added css too:
body{ overflow:hidden; width:100%; height:100%; }
the main part of webpage lies in 100% height. , other part ("a") lies below screen.
all need smooth scroll part ("a") of page on click @ anchor. still not making page scroll able arrow keys.
the blog - "http://gaulifancy.blogspot.com" when click "get down deeper" should scroll down smoothly.
note: page made scroll less.
have tried move containers translatey view? codepen example of site great you.
Comments
Post a Comment