diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-02-12 21:18:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-12 21:18:26 +0000 |
commit | 5d3e2e14679b3d8eafdf9a563727ec46a7a370ea (patch) | |
tree | 15c3857e2706085105e26a8a06eac4cd96ad2d04 /src/alf | |
parent | 521a764d4f896518af7f668e2d196b720461ec13 (diff) | |
download | voidsky-5d3e2e14679b3d8eafdf9a563727ec46a7a370ea.tar.zst |
Better animations for dialogs, animate web composer (#7703)
* animation atoms, use for modals * respect reduced motion * simplify animtions * fix atoms
Diffstat (limited to 'src/alf')
-rw-r--r-- | src/alf/atoms.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/alf/atoms.ts b/src/alf/atoms.ts index a7cf6cb3f..6982de75f 100644 --- a/src/alf/atoms.ts +++ b/src/alf/atoms.ts @@ -965,6 +965,26 @@ export const atoms = { transitionDelay: '50ms', }), + /* + * Animaations + */ + fade_in: web({ + animation: 'fadeIn ease-out 0.15s', + }), + fade_out: web({ + animation: 'fadeOut ease-out 0.15s', + }), + zoom_in: web({ + animation: 'zoomIn ease-out 0.1s', + }), + zoom_out: web({ + animation: 'zoomOut ease-out 0.1s', + }), + // special composite animation for dialogs + zoom_fade_in: web({ + animation: 'zoomIn ease-out 0.1s, fadeIn ease-out 0.1s', + }), + /** * {@link Layout.SCROLLBAR_OFFSET} */ |