Skip to content

BeforeTransition hook to control options dynamically #17

Open
@FransTwisk

Description

@FransTwisk

I'm using this mixin in a global layout animating the content between route changes and such and it works very well for this. However, sometimes the difference in height between one route and the next is a lot, causing a weird (long) animation.

It would be great if there was a beforeTransition hook where start and end properties are available (in this case height before and after) and a way to dynamically change the options in that hook for that run.

For instance, if the difference in height would be more then a certain amount, we disable the transition for that particular run. I'm sure this will also be useful for a lot of other use cases!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions