feat(ui): disable enter/exit animations on overlays globally
Reka-ui overlays (dialog, sheet, popover, dropdown, tooltip, …) animate their open/close via the data-state open/closed attribute. Zero the animation duration globally in index.css so overlays appear/dismiss instantly — no fade/zoom/slide. Verified the dialog still mounts and unmounts correctly (Presence resolves at 0s). Pulse/spin loaders and CSS transitions (hovers, the favourite heart pop) are untouched. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ed1ef89f70
commit
0e0160fb70
1 changed files with 13 additions and 0 deletions
|
|
@ -221,3 +221,16 @@
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Disable enter/exit animations on reka-ui overlays (dialog, sheet,
|
||||||
|
* popover, dropdown, tooltip, …) app-wide. They animate via the
|
||||||
|
* data-state open/closed attribute; zeroing the duration keeps the final
|
||||||
|
* state but removes the motion (overlays appear/disappear instantly).
|
||||||
|
* Pulse/spin loaders and CSS transitions (e.g. hovers, the favourite
|
||||||
|
* heart pop) are unaffected.
|
||||||
|
*/
|
||||||
|
[data-state='open'],
|
||||||
|
[data-state='closed'] {
|
||||||
|
animation-duration: 0s !important;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue