Mafrans / StadiaPlus

Extends Google's Stadia gaming platform with additional features, such as custom filters and in game network monitoring.
GNU General Public License v3.0
238 stars 35 forks source link

Library background animations using transform #149

Closed ELowry closed 3 years ago

ELowry commented 3 years ago

The game tile backgrounds in the library are now set to use the css transform property on a child element in order to better adapt to various tile sizes.

This way, the background-size property can be set to cover while still allowing for a smooth "zoom-in" animation.

The 16px extra padding that was used (referenced as a "magic number" in the code comments) has now been replaced by a 1vw margin to scale properly with the window size (and the background image as a result).

Mafrans commented 3 years ago

Looks good to me!