Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable for setting transition duration when hiding media controls #874

Closed
intelligence opened this issue Apr 2, 2024 · 0 comments
Closed
Assignees

Comments

@intelligence
Copy link

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;
}
@luwes luwes added the enhancement New feature or request label Apr 2, 2024
@luwes luwes removed the enhancement New feature or request label Dec 4, 2024
luwes pushed a commit that referenced this issue Jan 28, 2025
Related to #874
- Added `--media-control-transition-out` CSS variable to optionally
change the transition effect when hiding the `<media-controller>`
component.
- Added `--media-control-transition-in` CSS variable to optionally
change the transition effect when showing the `<media-controller>`
component.
- Added example of use in `basic-video.html`
@luwes luwes assigned luwes and R-Delfino95 and unassigned luwes Jan 29, 2025
@luwes luwes closed this as completed Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants