Replies: 1 comment
-
I have pretty much this exact situation! I would love for the ability to slide forward/backward based on if the link I'm clicking on is "left" or "right" of where the user currently is. I think there might (?) be a way to hack it to change the direction of the animation based on what page is being navigated from/to, but it's a little jank. And more importantly, I don't think there's any way to have a default "fade" animation for all links on the site and then only have this slide animation for specific links. I do realise that this initial proposal was from 2 years ago though, perhaps there's a method to do this now that I am just unaware of? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Body
Summary
Create an API where 2 links on the same page can produce different transition effects.
Background & Motivation
Currently the (experimental) view transition animations can be specified per-element, but that is a bit limiting for a more animated site.
For example, if I have a site similar to nord's:

I may want "Social Responsibility" to slide to the right, while "Emergency VPN" slides to the left.
Similar would be sites with a sidebar like Astro docs maybe sliding up/down depending on the page.
Goals
A concise, bulleted-list outlining the intended goals of this RFC.
Example
Disclaimer: I have only a surface-level knowledge about view transitions, this seemed like an obvious (and probably already being worked on) gap that I wanted to get out while playing with them
Beta Was this translation helpful? Give feedback.
All reactions