Implement float widget interactivity

This commit is contained in:
Héctor Ramón Jiménez 2025-04-30 23:35:31 +02:00
parent 97b4ed0d84
commit f8f2e55f19
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 94 additions and 19 deletions

View file

@ -210,6 +210,7 @@ fn card<'a>(
.content_fit(ContentFit::Cover)
.opacity(thumbnail.fade_in.interpolate(0.0, 1.0, now)),
)
.opaque(false)
.scale(thumbnail.zoom.interpolate(1.0, 1.1, now))
.translate(move |bounds, viewport| {
bounds.zoom(1.1).offset(&viewport.shrink(10))