Welcome! I have wrapped up your entire merchandise (let's dub it .product-item
) in a <div>
so that when you hover over the main image (or other visible options), you can toggle the visibility of the choices:
By default, hide the options with CSS:
#name-carousel {
float: left;
display: none;
}
Enclose your product in a container (HTML):
<div class="product-item"> <!-- This serves as the container -->
<div id="name-carousel" class="container">
<ul id="mycarousel" class="jcarousel-skin-tango">
<li id="carousel-selector-1"><img src="http://placehold.it/100x50&text=slide1" /></li>
<li id="carousel-selector-2"><img src="http://placehold.it/100x50&text=slide2" /></li>
<li id="carousel-selector-3"><img src="http://placehold.it/100x50&text=slide3" /></li>
<li id="carousel-selector-4"><img src="http://placehold.it/100x50&text=slide4" /></li>
<li id="carousel-selector-5"><img src="http://placehold.it/100x50&text=slide5" /></li>
</ul>
</div>
<div class="bigProductimage">
<img data-img="http://placehold.it/400x200&text=slide0" src="http://placehold.it/400x200&text=slide0">
</div>
</div>
To toggle the visibility of the options on hover (using jQuery):
productItem.hover(function() {
$("#name-carousel").fadeToggle();
});
Check out the updated fiddle here: http://jsfiddle.net/CliffBurton/6svy9ocy/3/