0

I'm trying to get the nav to show only when the carousel is hovered but not sure how to approach this. Should I be using a visibility toggle?

EDIT

enter image description here

http://jsfiddle.net/TWtwt/470/

.owl-theme .owl-controls .owl-nav [class*=owl-] {
  color: #fff;
  font-size: 14px;
  font-family: 'KeplerStd-Regular';
  display: block;
  cursor: e-resize;
}

.owl-theme .owl-controls .owl-nav [class*=owl-]:hover {
  background-color: #1f1f1f;
  transition: 0.5s all;
  cursor: e-resize
}
user2252219
  • 835
  • 3
  • 17
  • 41

1 Answers1

1

You just need to change the opacity of owl-prev and owl-next to 0 in your CSS code, like this:

.owl-prev, .owl-next {opacity: 0 !important;}

Then, you can define hover action on owl-carousel to show/hide it as follows:

.owl-carousel:hover .owl-controls .owl-buttons .owl-prev {opacity: 1 !important;}
.owl-carousel:hover .owl-controls .owl-buttons .owl-next {opacity: 1 !important;}

Check out working example HERE

zero point
  • 1,290
  • 3
  • 10
  • 15