Prevent anchor flash to top of screen then smooth scroll

I often will link to a section on a different page like so.

Link on homepage pointing to website.com/about/#our-team so that I can send a visitor to a specific point on that page. The only problem is when I do this, the page immediately loads at the correct point, then the animation kicks in and jumps to the top of the page then smooths scrolls down. See video.

See screencast here: Loom | Free Screen & Video Recording Software

I’m aware that I can completely disable the smooth scrolling animation, but I do use this within pages as well so would rather keep it intact.

My main question is can I disable the smooth scrolling when visiting from another page using a link with an anchor tag?

1 Like