Webflow smooth scrolling to an anchor on a different page

PHOTO EMBED

Tue Dec 21 2021 00:18:13 GMT+0000 (Coordinated Universal Time)

Saved by @partywave

Combining answers by Petr and Sarfraz, I arrive at the following.

On page1.html in the link:

<a href="page2.html#elementID">Jump</a>
 Save

 On page2.html in the body:

<script type="text/javascript">
    $(document).ready(function() {
        $('html, body').hide();

        if (window.location.hash) {
            setTimeout(function() {
                $('html, body').scrollTop(0).show();
                $('html, body').animate({
                    scrollTop: $(window.location.hash).offset().top
                    }, 1000)
            }, 0);
        }
        else {
            $('html, body').show();
        }
    });
</script>
content_copyCOPY

https://stackoverflow.com/questions/9652944/jquery-scroll-to-id-from-different-page