这是indexloc提供的服务,不要输入任何密码
Skip to content

Conditionally apply viewTransitionName styles to element based on the transition state #36

@piotrkulpinski

Description

@piotrkulpinski

Hi,

I'm trying to implement custom view transitions similar to the one I've implemented on OpenAlternative website.

I was using Remix at that site, and they have a nice helper hook to check the state of the transitions and only apply transition styles if it's active: https://remix.run/docs/en/main/hooks/use-view-transition-state

Is it also possible in next-view-transitions package?

Without this, all of the transitions get triggered simultaneously at the page which creates weird effects:
https://share.cleanshot.com/C0mPB6m1

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions