no scrolling animation on scrolling with anchor tags

hey folks I'm doing scrolling using the anchor tags, but the problem is it instantaneously scroll to the section I mean there is no scrolling animation I tried adding the scroll-behaviour: smooth; to the body but it didn't worked how do I get the scrolling animation on scrolling with anchor tags
2 Replies
Chris Bolson
Chris Bolson2y ago
try adding it to the html selector rather than the body
Aditya Kirad
Aditya Kirad2y ago
it worked but why it doesn't worked on body selector
Want results from more Discord servers?
Add your server