redo web lightbox, add animations

This commit is contained in:
Samuel Newman
2025-12-04 16:01:44 +02:00
parent ae77320d81
commit 3fe4effe9d
5 changed files with 257 additions and 179 deletions
+3 -1
View File
@@ -5,6 +5,8 @@ import {CARD_ASPECT_RATIO} from '#/lib/constants'
import {native, platform, web} from '#/alf/util/platform'
import * as Layout from '#/components/Layout'
const EXP_CURVE = 'cubic-bezier(0.16, 1, 0.3, 1)'
export const atoms = {
...baseAtoms,
@@ -103,7 +105,7 @@ export const atoms = {
}),
// special composite animation for dialogs
zoom_fade_in: web({
animation: 'zoomIn ease-out 0.1s, fadeIn ease-out 0.1s',
animation: `zoomIn ${EXP_CURVE} 0.3s, fadeIn ${EXP_CURVE} 0.3s`,
}),
/**