natinusala / borealis

Hardware accelerated, controller and TV oriented UI library for PC and Nintendo Switch (libnx)
Apache License 2.0
254 stars 81 forks source link

Animate layout changes #152

Open natinusala opened 3 years ago

natinusala commented 3 years ago

It would be nice to have a way to animate layout changes. Instead of having the layout pass done and every view be resized at once, the changes would be interpolated and the whole UI would smoothly "move" from the old layout to the new one.

For example, collapsing a sidebar would expand the main aera on the right. The eShop on the Switch does it, for a visual example. Another example, changing the text of a button would increase its width smoothly.

Every layout change should be animatable to have a smooth transition.

Probably related to #150 ?