Hi, I have a jquery slider, In which i want to display 2 slides in each frame, How can i set that ? And also Mouse over caption to each slides, Below is my code. Thanks in advance
<li>
<img src="images/1.jpg" alt="">
<p class="caption">This is a caption</p>
<img src="images/2.jpg" alt="">
<p class="caption">This is another caption</p>
</li>
Then you just have to style it all appropriately.
Feel free to post a demo on CodePen so that we can help further.
Personally, I would wrap the img/caption pairs in divs for easier styling:
<li>
<div>
<img src="images/1.jpg" alt="">
<p class="caption">This is a caption</p>
</div>
<div>
<img src="images/2.jpg" alt="">
<p class="caption">This is another caption</p>
</div>
</li>
Or if you want to be extra fancy, use the <figure> element to wrap each pair in, along with <figcaption> instead of <p>.
Hi ralph,
Thanks for the replay, It works for me , How can i add animation to the hide and show of my caption while mouse over and mouse out ? Here is the demo http://codepen.io/salimali/pen/bdyHf
Many slider scripts have that as an in-built option. If the one you are using doesn’t, then I’d advise you use a different one, such as bxSlider or Slick.
Hi ralph, Thanks for the advice, As you mentioned i changed the slider to bxslider, Now the problem i am facing is when i press next or previous, after that it will not change the images automatically. Here is the link for CodePen http://codepen.io/salimali/pen/bdyHf