modal: Remove opacity animation for improve Modal appear. (#633)

This commit is contained in:
Jason Lee 2025-02-17 13:32:17 +08:00 committed by GitHub
parent 2c377985bb
commit 231772ee4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -451,7 +451,7 @@ impl RenderOnce for Modal {
.with_easing(cubic_bezier(0.32, 0.72, 0., 1.)),
move |this, delta| {
let y_offset = px(0.) + delta * px(30.);
this.top(y + y_offset).opacity(delta)
this.top(y + y_offset)
},
),
),