![]() setting the className="scroll-smooth" on the html element in my layout.js and that does not work. The hrefs are referencing sections with id's. Click Me to Smooth Scroll to Section 2 Below Note: Remove the scroll-behavior property to remove smooth scrolling. When I click a link, it just jumps to the section with the id rather than scroll smoothly. Section 1 Click on the link to see the 'smooth' scrolling effect. However, I cannot seem to get smooth scroll to work. As always, keep a lookout for new blog posts.I am building my portfolio using next.js 13.4.4 and tailwind. Play Copy to Clipboard
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |