Skip to content

Feature: Match scroll position of outgoing and incoming page #18

@michalchovanak

Description

@michalchovanak

Describe the problem 🧐

First of all, I appreciate the work done on Swup, it’s great!

I managed to make a beautiful transition for my website with the help of SwupParallelPlugin.
It’s basically an easy masked transition to the new page.

I want to be able to click on a link, for example, in the second half of a page, and the next page should be scrolled to the top. I viewed a lot of previous issues, tried various hooks, and tried SwupScrollPlugin, but nothing is working in this manner. The SwupScrollPlugin is closest to what I want to achieve, but it scrolls the actual page to the top and then transitions.

I appreciate all the help.

Describe the propsed solution 😎

So i want this:

  1. page - stay on the position after click on a link
  2. page - opens scrolled to top

Alternatives considered 🤔

SwupScrollPlugin

How important is this feature to you? 🧭

I cannot use swup without it

Checked all these? 📚

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions