Change cursor in "onhover" event to HTML5 <video>

Asked

Viewed 129 times

1

I want to change the cursor to a "hand" when I move the mouse over the buttons:

  • Play
  • Stop
  • Volume
  • Fullscreen etc..

to a video player HTML5. At the moment, the mouse pointer when it passes over the player has no idea that it can interact with it. How can I fix that since I have no idea how to change the CSS of those same buttons.

2 answers

3


I did some research and I saw that there are these pseudo-elements that maybe you can use:

 video::-webkit-media-controls-play-button

 video::-webkit-media-controls-volume-slider-container

 video::-webkit-media-controls-volume-slider

 video::-webkit-media-controls-fullscreen-button

Here is the complete list with more details: Webkit-pseudo-Elements

I based myself on the following question:CSS cursor style for Html5 video Elements

  • by chance had tried with this, before asking the question, but I must have used the wrong element. It works 5*

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.