Skip to content

Mobile-style stacked navigation (push/pop) for routes #136

@maliknajjar

Description

@maliknajjar

I have a feature request / question about routing behavior on mobile devices.

In most mobile navigation patterns (e.g. native apps), navigation works using a “stack”:

  • When you navigate to a new route, it is pushed onto the stack
  • The old route is kept in memory instead of being totally replaced
  • A slide-in animation is usually used
  • Going back simply pops the last route from the stack

Right now, navigation replaces the current view, similar to a traditional web page. I’d like to achieve a mobile-like behavior where routes are pushed and popped and can have slide transitions like native mobile navigation.

Is this behavior already possible with svelte-router-core in some way?

Thanks again for your work!

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