add motion to dialog
This commit is contained in:
@@ -255,7 +255,11 @@ impl RenderOnce for Dialog {
|
||||
.items_center()
|
||||
.justify_center()
|
||||
.p_4()
|
||||
.child(scrim)
|
||||
.child(scrim.with_animation(
|
||||
"dialog-scrim-enter",
|
||||
Animation::new(enter_duration).with_easing(ease_out_quint()),
|
||||
|scrim, delta| scrim.opacity(delta),
|
||||
))
|
||||
.child(panel.with_animation(
|
||||
"dialog-enter",
|
||||
Animation::new(enter_duration).with_easing(ease_out_quint()),
|
||||
|
||||
Reference in New Issue
Block a user