router icon indicating copy to clipboard operation
router copied to clipboard

Enable native View Transition API

Open claytongulick opened this issue 2 years ago • 2 comments

Allow optional use of View Transition API for navigation transitions.

PR incoming.

claytongulick avatar Mar 29 '23 23:03 claytongulick

Hey @claytongulick do you have an example on how to use view transition with your PR?

alienself avatar Dec 17 '23 18:12 alienself

@alienself Sure, just set enableNativeViewTransitions to true and add some css:

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .35s;
}

claytongulick avatar Jan 16 '24 15:01 claytongulick