Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing animations #43

Open
10 tasks
Tracked by #31
tom-ricci opened this issue Mar 14, 2022 · 0 comments
Open
10 tasks
Tracked by #31

Routing animations #43

tom-ricci opened this issue Mar 14, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@tom-ricci
Copy link
Owner

tom-ricci commented Mar 14, 2022

When client-side routing, we will support CSS animations for routing animations.

  • One animation for page exit
  • One animation for page enter
  • These animations will be combined to make an exit and enter animation when routing between pages
  • Animation targets:
    • Animations can be different based on the route
    • There can be a default animation
    • There can be enter animations for specific routes
    • There can be exit animations for specific routes
    • Basically, a component will define its enter and exit animations. It can specify whether an animation is default or should be only for one route. For example, the animation should be able to be defined such that when user goes from /about to /cart, /about will load specific about -> cart exit animation and cart will load specific about -> cart enter animation. These animations should support globbing. Animations should be found by how specific they are, so for example if a glob pattern exists for /products/* and a specific animation for /products/apple, when going to /products/apple the specific animation will load whereas any other product will load /products/*. If these animations do not exist, the default animation will be used. If the default does not exist, the component will not animate. Since enter and exit animations are different, a component can define a default or custom enter animation without defining a similar exit animation, and the router will just use the enter animation specified and will look for another exit animation which will work or will use no exit animation or vice versa.
  • When the router is given a path from the static router, homepage should not load in or animate exit but rather the enter animation for the page loaded should be used.

Although, we might not do this. Maybe use optimistic UI instead with RR?

@tom-ricci tom-ricci mentioned this issue Mar 14, 2022
18 tasks
@tom-ricci tom-ricci self-assigned this Mar 14, 2022
@tom-ricci tom-ricci added the enhancement New feature or request label Mar 14, 2022
@tom-ricci tom-ricci added this to the v2.0.0 milestone Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant