Basic CSS Grid based video grid demo

This commit is contained in:
Robert Long
2021-08-11 16:02:40 -07:00
parent 6addd838b4
commit f9d799ff05
5 changed files with 258 additions and 2 deletions

32
src/GridDemo.module.css Normal file
View File

@@ -0,0 +1,32 @@
.gridDemo {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
display: flex;
flex-direction: column;
}
.grid {
position: relative;
overflow: hidden;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
grid-auto-flow: dense;
grid-gap: 8px;
justify-items: stretch;
padding: 8px;
flex: 1;
}
.participantTile {
will-change: transform, opacity;
}
.participantTile video {
width: 100%;
height: 100%;
object-fit: cover;
}