Smoth scrolling for anchor tags within post content

Is there a way to implement smooth scrolling to anchor links with the same page?

I am able to use anchor tags effectively, but am not sure that it is possible to add smooth scrolling without a plugin.

Hey @meaghan1 did you try using scroll-behaviour: smooth?

Reference: https://www.w3schools.com/cssref/pr_scroll-behavior.asp

@Pablo hi! i did try using that, but it was not working at all for me

EDIT: i finally got it working, thank you

1 Like

Awesome! Btw, @meaghan1 'd be great if you share your solution :smiley:

Hi @meaghan1, what was your solution to this? Thanks