![]() |
VOOZH | about |
Smooth scrolling refers to the scrolling of a section of the webpage when the respective link is clicked. By default when we click a link it skips directly to that element using smooth scrolling the UX improves a lot. Tailwind CSS provides a utility class named scroll-smooth which applies the CSS property of scroll-behaviour with a value of smooth.
<a> with href attributes pointing to specific sections (#section1, #section2, #section3) within the page.Example: implement smooth scrolling using Tailwind CSS.
Output: