videojs / video.js

Video.js - open source HTML5 video player
https://videojs.com
Other
37.49k stars 7.4k forks source link

Fade custom elements #7551

Open adhamfarrag opened 2 years ago

adhamfarrag commented 2 years ago

Description

How to apply all showing/hiding rules for custom elements when it comes to mouse inside, mouse outside video tag, mouse dosn't move ?

Additional Information

versions

videojs 7.15.4

mister-ben commented 2 years ago

You can use the vjs-user-active and vjs-user-inactive classes used by the default controls, see for example how they're used in the controlBar

The timeout is controlled by the inactivityTimeout option.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.