I am using bxslider to build a nice carousel displaying 2 items at a time. this is my html:
<ul class="bxslider clearfix">
<li>
<span>Case Study</span>
<h3>The London Business School</h3>
<a href="#">+ See Full Case Study</a>
</li>
<li>
<span>Case Study</span>
<h3>The Terra Santa College</h3>
<a href="#">+ See Full Case Study</a>
</li>
<li>
<span>Case Study</span>
<h3>Case Study number 3</h3>
<a href="#">+ See Full Case Study</a>
</li>
</ul>
and this is my JS:
jQuery('#case-studies .bxslider').bxSlider({
mode: 'horizontal',
useCSS: false,
moveSlides: 1,
pager: false,
minSlides: 2,
maxSlides: 2,
slideWidth: 360,
autoHidePager: true,
slideMargin: 10
});
It works great and shows 2 items each click. the issue I have is that each slide has a background image of a simple line in the left side and I am trying to remove the backgroun from the first item only.
I was thinking I can use last-child in my li item like so:
#case-studies .bxslider li:first-child {
background: none !important;
}
but after I checked on the site the bxslider loop animation clones the number of the slides you have in order to create a loop and the first hcild isn't necassary the one you see..
anyway I can add a class to the first item that appears? Thanks