diff --git a/subwave_nowplaying.star b/subwave_nowplaying.star index 1a055d6..8a3d3b2 100644 --- a/subwave_nowplaying.star +++ b/subwave_nowplaying.star @@ -86,10 +86,11 @@ def main(config): return render.Root(child = content) -# Album art gets a slow "Ken Burns" breathing effect: eases from the full -# frame in to a zoomed-in crop, then back out, on a continuous loop -- not -# a one-shot reveal. A one-shot version (start zoomed in, end on the full -# frame, then hold) looked jumpy: since the app re-renders on NOWPLAYING_TTL +# Album art gets a slow "Ken Burns" breathing effect: starts and ends on +# the full frame, easing in to a zoomed-in crop at the midpoint, on a +# continuous loop -- not a one-shot reveal. A one-shot version (start +# zoomed in, end on the full frame, then hold) looked jumpy: since the app +# re-renders on NOWPLAYING_TTL # and each fresh render restarts its own animation from tick 0, whatever the # *previous* pushed image happened to be showing at that moment gets # abruptly replaced by a fresh zoomed-in frame. The back-and-forth loop @@ -129,16 +130,16 @@ def _art_widget(art_bytes): keyframes = [ animation.Keyframe( percentage = 0.0, - transforms = [animation.Scale(ART_ZOOM_SCALE, ART_ZOOM_SCALE)], + transforms = [animation.Scale(1.0, 1.0)], ), animation.Keyframe( percentage = 0.5, - transforms = [animation.Scale(1.0, 1.0)], + transforms = [animation.Scale(ART_ZOOM_SCALE, ART_ZOOM_SCALE)], curve = "ease_in_out", ), animation.Keyframe( percentage = 1.0, - transforms = [animation.Scale(ART_ZOOM_SCALE, ART_ZOOM_SCALE)], + transforms = [animation.Scale(1.0, 1.0)], curve = "ease_in_out", ), ],