Implement float widget interactivity
This commit is contained in:
parent
97b4ed0d84
commit
f8f2e55f19
2 changed files with 94 additions and 19 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue