muxinc / media-chrome

Custom elements (web components) for making audio and video player controls that look great in your website or app.
https://media-chrome.org
MIT License
1.11k stars 56 forks source link

Variable for setting transition duration when hiding media controls #874

Open intelligence opened 3 months ago

intelligence commented 3 months ago

AFAIK these values are hardcoded and cannot be changed via CSS variables at the moment?

My workaround:

.mux-player[userinactive]:not([mediapaused]) media-control-bar {
  transition: opacity 0.125s ease-in-out;
}