Replace premature animation optimization with a potentially wiser one

This commit is contained in:
Robin Townsend 2023-01-30 23:44:19 -05:00
parent 0166eb67fb
commit 82c7293308
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,5 @@
.grid {
contain: strict;
position: relative;
flex-grow: 1;
padding: 0 22px;
@ -7,6 +8,7 @@
}
.slotGrid {
contain: strict;
position: relative;
display: grid;
grid-auto-rows: 183px;
@ -15,6 +17,7 @@
}
.slot {
contain: strict;
scroll-snap-align: start;
}

View file

@ -16,8 +16,8 @@ limitations under the License.
.videoTile {
position: absolute;
contain: strict;
top: 0;
will-change: transform, width, height, opacity, box-shadow;
width: var(--tileWidth);
height: var(--tileHeight);
border-radius: 20px;