File size: 2,341 Bytes
1e92f2d |
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
@import 'src/assets/css/mixin.scss';
@keyframes example {
from {
opacity: 0;
transform: scale(1.5);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes learve {
from {
opacity: 1;
transform: scale(1);
}
to {
opacity: 0;
transform: scale(1.5);
}
}
.JoL-progress-container {
transition: all 0.5s;
width: 100%;
.progress-bg {
transition: all 0.3s;
@include wh(100%, 5px);
background: rgba(255, 255, 255, 0.2);
border-radius: 2px;
position: relative;
.progress-buffered {
@include wh(0%, 100%);
@include position(absolute, 0, auto, auto, 0);
z-index: 1;
border-radius: 2px;
background: rgba(255, 255, 255, 0.5);
}
.progress-played {
@include wh(0%, 100%);
@include position(absolute, 0, auto, auto, 0);
z-index: 2;
border-radius: 2px;
.progress-scrubber {
transition: all 0.3s;
@include wh(12px, 12px);
@include position(absolute, -50%, -5px, auto, auto);
margin-top: 1px;
border-radius: 50%;
}
}
.progress-seek-mask {
@include wh(100%, calc(100% + 6px));
@include position(absolute, -3px, auto, auto, 0);
z-index: 100;
&:hover {
cursor: pointer;
}
}
.pointer {
@include position(absolute, 0, auto, auto, 714px);
.top-triangle,
.bottom-triangle {
@include wh(0, 0);
position: absolute;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
}
.top-triangle {
left: -4px;
top: -5px;
border-bottom: 4px solid transparent;
}
.bottom-triangle {
left: -4px;
top: 3px;
border-top: 4px solid transparent;
}
}
.video-img-box {
@include wh(169px, 96px);
@include position(absolute, -105px, auto, auto, 0);
margin-left: calc(-169px / 2);
.video-current-img {
@include wh(100%, 100%);
}
.current-time {
@include position(absolute, auto, auto, 0, 50%);
@include style(12px, #fff);
transform: translateX(-50%);
background-color: #222222;
padding: 1px 4px;
}
}
}
}
|