Make an element appear and make adjustments when hovering over another element

Gregory Schultz

I'm having problems with my code. I have it set up properly to show a hidden div mejs__horizontal-volume-slider when you hover over mejs__volume-button and shift other elements to the right to accommodate mejs__horizontal-volume-slider. The problem I have is that mejs__horizontal-volume-slider disappears when you move off mejs__volume-button.

I'm looking for a way to show mejs__horizontal-volume-slider and adjust the volume when you hover over mejs__volume-button and move over to mejs__horizontal-volume-slider.

URL: http://wpfreelance.bayoumedia.net/audio/

JS code:

  $(document).ready(function() {
$('.mejs__volume-button').hover(
function () {
 $('.mejs__horizontal-volume-slider').css({"display":"block"});
 $('.mejs__time-slider').css({"width":"-moz-calc(100% - 50px)"});
 $('.mejs__time-slider').css({"width":"-webkit-calc(100% - 50px)"});
 $('.mejs__time-slider').css({"width":"calc(100% - 50px)"});
 $('.mejs__speed-button').css({"right":"40px"});
},
function () {
 $('.mejs__horizontal-volume-slider').css({"display":"none"});
 $('.mejs__time-slider').css({"width":"100%"});
 $('.mejs__speed-button').css({"right":"0"});
});});
j-printemps

Insert the slider and the button in the same container, and trigger the hover effect with the container, so when you're moving over the slider, you're still hovering the container. It's probably better to use CSS by the way.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Element A is positioned over Element B. Anyway, when hovering over Element A, make the page appear that Element B is still being hovered over?

From Dev

How to make an element active on hover, and remain active when im hovering over another specific div

From Dev

CSS3 - How to make one element(preferably a div element) move while hovering over another element?

From Dev

Make element appear over another one in a different stacking context

From Dev

On hovering one pseudo element, make the other pseudo element appear?

From Dev

How to make a tolltip appear only when hovering over text?

From Dev

How to scroll up a div when hovering over another element

From Dev

Make Element Appear After Another Element Using Only CSS

From Dev

How to make an element display over another element when z-index doesn't work?

From Dev

Animate svg by hovering over another element

From Dev

Hovering over one element changes another?

From Dev

Triggering bootstrap tooltip by hovering over another element

From Dev

Hovering over one element changes another?

From Dev

Possible to make labels appear when hovering over a point in matplotlib in stem plot?

From Dev

How to make text appear when hovering over an image that's inside an anchor tag and the anchor tag is inside a div?

From Dev

How can i make a custom made textbox appear when hovering over a button in wpf

From Dev

Possible to make labels appear when hovering over a point in matplotlib in stem plot?

From Dev

how to make div appear when hover over another div

From Dev

Make the element appear at the end of the arc

From Dev

Specify the location of the tooltip when hovering over an element

From Dev

Hide image when hovering over a parent element

From Dev

Hide image when hovering over a parent element

From Dev

Make an element appear behind an element but is placed inside of it

From Dev

How to make scrollbar to appear when scrolling inside an element on Windows Phone?

From Dev

Make bound element appear when populated after initial page load

From Dev

Make an html element appear when page is scrolled down

From Dev

Make hovering over a parent element only affect its own text, not child elements

From Dev

keep mouse over active if hovering over another overlapping element

From Dev

Make a div appear on hover over another div

Related Related

  1. 1

    Element A is positioned over Element B. Anyway, when hovering over Element A, make the page appear that Element B is still being hovered over?

  2. 2

    How to make an element active on hover, and remain active when im hovering over another specific div

  3. 3

    CSS3 - How to make one element(preferably a div element) move while hovering over another element?

  4. 4

    Make element appear over another one in a different stacking context

  5. 5

    On hovering one pseudo element, make the other pseudo element appear?

  6. 6

    How to make a tolltip appear only when hovering over text?

  7. 7

    How to scroll up a div when hovering over another element

  8. 8

    Make Element Appear After Another Element Using Only CSS

  9. 9

    How to make an element display over another element when z-index doesn't work?

  10. 10

    Animate svg by hovering over another element

  11. 11

    Hovering over one element changes another?

  12. 12

    Triggering bootstrap tooltip by hovering over another element

  13. 13

    Hovering over one element changes another?

  14. 14

    Possible to make labels appear when hovering over a point in matplotlib in stem plot?

  15. 15

    How to make text appear when hovering over an image that's inside an anchor tag and the anchor tag is inside a div?

  16. 16

    How can i make a custom made textbox appear when hovering over a button in wpf

  17. 17

    Possible to make labels appear when hovering over a point in matplotlib in stem plot?

  18. 18

    how to make div appear when hover over another div

  19. 19

    Make the element appear at the end of the arc

  20. 20

    Specify the location of the tooltip when hovering over an element

  21. 21

    Hide image when hovering over a parent element

  22. 22

    Hide image when hovering over a parent element

  23. 23

    Make an element appear behind an element but is placed inside of it

  24. 24

    How to make scrollbar to appear when scrolling inside an element on Windows Phone?

  25. 25

    Make bound element appear when populated after initial page load

  26. 26

    Make an html element appear when page is scrolled down

  27. 27

    Make hovering over a parent element only affect its own text, not child elements

  28. 28

    keep mouse over active if hovering over another overlapping element

  29. 29

    Make a div appear on hover over another div

HotTag

Archive