You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
386 B
29 lines
386 B
4 years ago
|
.still-image {
|
||
|
position: relative;
|
||
|
overflow: hidden;
|
||
|
|
||
|
img,
|
||
|
canvas {
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
display: block;
|
||
|
object-fit: cover;
|
||
|
font-family: inherit;
|
||
|
}
|
||
|
|
||
|
&--play-on-hover {
|
||
|
img {
|
||
|
position: absolute;
|
||
|
visibility: hidden;
|
||
|
}
|
||
|
|
||
|
&:hover img {
|
||
|
visibility: visible;
|
||
|
}
|
||
|
|
||
|
&:hover canvas {
|
||
|
visibility: hidden;
|
||
|
}
|
||
|
}
|
||
|
}
|