forked from brightcove/videojs-thumbnails
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvideojs.thumbnails.css
More file actions
31 lines (28 loc) · 874 Bytes
/
videojs.thumbnails.css
File metadata and controls
31 lines (28 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* a wrapper element that tracks the mouse vertically */
.vjs-thumbnail-holder {
position: absolute;
left: -1000px;
}
/* the thumbnail image itself */
.vjs-thumbnail {
position: absolute;
left: 0;
bottom: 1.3em;
opacity: 0;
transition: opacity .2s ease;
-webkit-transition: opacity .2s ease;
-moz-transition: opacity .2s ease;
-mz-transition: opacity .2s ease;
}
/* fade in the thumbnail when hovering over the progress bar */
/* .fake-active is needed for Android only. It's removed on touchend/touchecancel */
.vjs-progress-control:hover .vjs-thumbnail,
.vjs-progress-control.fake-active .vjs-thumbnail,
.vjs-progress-control:active .vjs-thumbnail {
opacity: 1;
}
/* ... but hide the thumbnail when hovering directly over it */
.vjs-progress-control:hover .vjs-thumbnail:hover,
.vjs-progress-control:active .vjs-thumbnail:active {
opacity: 0;
}