076video-player/style.css

36 行
587 B
CSS

.video-container {
position: relative;
max-width: 900px;
margin: auto;
}
video {
width: 100%;
height: auto;
}
.comments-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
overflow: hidden;
pointer-events: none;
}
.comment {
color: #fcfcfc;
position: absolute;
white-space: nowrap;
right: 0;
font-size: 50px;
text-shadow: -1px 1px 0 #232629, 1px 1px 0 #232629, 1px -1px 0 #232629, -1px -1px 0 #232629;
}
@keyframes scrollComment {
from { transform: translateX(1800px); }
to { transform: translateX(-1800px); }
}