0

how to make it so that when you click on an anchor link, it smoothly scrolls to the desired block.

I already use scroll-behavior: smooth; but I need that to be even smoother. To increase the time for which the page will scroll from the link to the block. How to do it using CSS or JS and without JQuery?

2
  • The above question has answers for various different techniques (despite being tagged with jQuery), it should cover what you need. Commented Apr 22, 2024 at 12:19
  • look into the lenis - smooth scroll library Commented Apr 22, 2024 at 12:30

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.