Continue movement after screen resize #9

Open
opened 2025-11-10 17:56:26 +02:00 by gytisrepecka · 0 comments
Owner

When working on inretio/bouncing-logo#4 it became clear experience after reset (putting logo in the middle, chossing 1-4 region and start movement) needs to be improved.

Samsung had a testing remark on screen resize animation resets instead of continuing. On foldable screens it is important because when same view moved from one screen (say, cover screen on Galaxy Fold) to another (e.g.: the foldable one) for web app is essentially just Window Resize event.

Therefore need to improve:

  1. When window is resized, pause animation;
  2. Continue animation if logo is within window's bounds;
  3. Reset animation if logo is outside or smaller than window's bounds.
When working on inretio/bouncing-logo#4 it became clear experience after reset (putting logo in the middle, chossing 1-4 region and start movement) needs to be improved. Samsung had a testing remark on screen resize animation resets instead of continuing. On foldable screens it is important because when same view moved from one screen (say, cover screen on Galaxy Fold) to another (e.g.: the foldable one) for web app is essentially just Window Resize event. Therefore need to improve: 1. When window is resized, pause animation; 2. Continue animation if logo is within window's bounds; 3. Reset animation if logo is outside or smaller than window's bounds.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
inretio/bouncing-logo#9
No description provided.