Skip to content

Degrade view transitions under Reduce Motion - #72

Open
shanerbaner82 wants to merge 1 commit into
mainfrom
feat/view-transitions
Open

Degrade view transitions under Reduce Motion#72
shanerbaner82 wants to merge 1 commit into
mainfrom
feat/view-transitions

Conversation

@shanerbaner82

Copy link
Copy Markdown
Contributor

Companion to NativePHP/mobile-air#372, which adds shared-element view
transitions (ref + @navigate.viewTransition).

The NativeUI.Transition.Set bridge function is where Reduce Motion is honoured
— it already substitutes a plain fade for anything that isn't none or fade.
The new view_transition value was reaching the renderer untouched.

Substituting a fade drops the shared-element morph along with the directional
motion, which is correct: the morph is the movement that setting asks us not
to make. none and fade are already motionless and still pass through
unchanged.

Three lines plus a comment. Safe to merge before or after the core PR — until
core ships, view_transition is simply a value nothing emits.

🤖 Generated with Claude Code

`view_transition` was reaching the renderer untouched when Reduce Motion is on.
Substituting a plain fade drops the shared-element morph along with the
directional motion, since the morph IS the movement that setting asks us not to
make. `none` and `fade` are already motionless and still pass through.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant