Skip to content

Commit

Permalink
fix(FEC-7359): add native caption style (#119)
Browse files Browse the repository at this point in the history
When using native captions (currently on Safari) they should be responsive to the player ui
  • Loading branch information
Dan Ziv authored and OrenMe committed Nov 4, 2017
1 parent 94c1066 commit 6d768ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/styles/_captions.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
.player {
video::-webkit-media-text-track-display {
transform: translateY(0px);
transition: ease-in 100ms;
}
&.state-paused video::-webkit-media-text-track-display,
&.hover video::-webkit-media-text-track-display {
transform: translateY(-60px);
transition: ease-out 100ms;
}
&.overlay-active {
:global(.playkit-subtitles) {
display: none;
Expand Down

0 comments on commit 6d768ee

Please sign in to comment.