Change cursor on event "onhover" for HTML5 video

1

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

  • Play
  • Stop
  • Volume
  • Fullscreen etc.

for an HTML5 video player . At the moment, the mouse pointer when passing over the player does not give an idea that you can interact with it. How can I fix this, since I have no idea how to change the CSS of those same buttons.

    
asked by anonymous 09.03.2017 / 13:42

2 answers

3

I checked one and saw that there are these pseudo-elements that you might be able to 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

Based on the following question: CSS cursor style for html5 video elements

    
09.03.2017 / 13:54
0

Place the class below or the css property cursor: pointer; into the div you want:

.cursor_pointer {
    cursor: pointer;
}

Example: link

Reference: link

Other possibilities to use as a cursor:

  • auto
  • cell
  • copy
  • crosshair
  • default
  • grab
  • grabbing
  • help
  • move
  • none
  • not-allowed
  • progress
  • text
  • wait
  • zoom-in
  • zoom-out
  • initial
09.03.2017 / 13:52