aboutsummaryrefslogtreecommitdiffstats
path: root/src/sass/components/poster.scss
blob: 4bdb60d975140f8ec901273d3d8f4016ff283183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// --------------------------------------------------------------
// Faux poster overlay
// --------------------------------------------------------------

.plyr__poster {
    background-color: #000;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.plyr--stopped.plyr__poster-enabled .plyr__poster {
    opacity: 1;
}