diff options
author | Teddy Wing | 2021-08-14 20:49:29 +0200 |
---|---|---|
committer | Teddy Wing | 2021-08-14 20:49:29 +0200 |
commit | b0be4947ab35876fd004d1fbd8ec9fa7e90b6786 (patch) | |
tree | e7887c1e09db30930ef56b0defdc8986efad3103 /src/index.ts | |
parent | 447ec71e51c3a3db3c756a1479323d9d19b6f259 (diff) | |
download | netflix-immersive-b0be4947ab35876fd004d1fbd8ec9fa7e90b6786.tar.bz2 |
fullscreen_credits.ts: Hide controls after clicking minimised video
Now that the controls are shown and hidden by being added to and removed
from the DOM (instead of with CSS classes as before), we need a
different method to hide player controls after clicking on the minimised
video to maximise it and enable the controls again.
Here, we add CSS that hides the controls (and the "Back to Browse"
button, which also appears in sync with them) so that they don't appear
after the script auto-maximises the video. Four seconds seemed to be
about enough time for the player to automatically hide them, at which
point we need to remove the styles so that the controls can be accessed
by users.
Diffstat (limited to 'src/index.ts')
0 files changed, 0 insertions, 0 deletions