Chrome recently shipped the View Transition API, which allows to more seamlessly to animate transitions between different views using snapshots, which is particularly handy for immediate mode/VDOM based rendering, as this makes enter/exit animations particularly tricky.
The main thing to support this looks something like this:
Chrome recently shipped the View Transition API, which allows to more seamlessly to animate transitions between different views using snapshots, which is particularly handy for immediate mode/VDOM based rendering, as this makes enter/exit animations particularly tricky.
The main thing to support this looks something like this:
Then there is a bunch of CSS syntax available to customise the transitions.
On the Elm side I don't know what the opt-in API would look like (perhaps an extra boolean field in
Document
?)