Skip to content

Method to determine if anchor was used on page load? #3874

Open
@alvarotrigo

Description

From this conversation

It's a work in progress but here's a staged version: http://gatsby.loganjamesnottbohm.com/projects/

If you scroll down to the second slide, then click view project, and then click back, the issue will appear. It will load the first slide initially but then immediately animate to the second slide. Ideally, my animation would not be called from onLeave being triggered when hitting back, and it would just load the second slide without any animation.

Thank you for the help by the way!

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions