I am trying to get a scrolling gallery implemented on my new website. I am using the Cycle plug-in. When I have the plug in set to effects "fade" or "shuffle" and a couple others it works fine but when I try to use my desired effect (scrollLeft or scrollHorz) my images disappear? I do not understand, I believe it may have something to do with my CSS. Could somebody have a look to see if there is anything I have missed?
CSS:
div#slideshow {
width: 666px; height: 243px;
overflow: hidden;
position: relative; z-index: 5;
margin:15px 0 0 0;
float:left;
}
div#slideshow ul#slides {
list-style: none;
}
div#slideshow ul#slides li {
margin:0;
}
Javascript:
$(document).ready(function() {
$("#slideshow").css("overflow", "hidden");
$("ul#slides").cycle({
fx: 'scrollLeft',
pause: 1,
});
});
HTML:
<div id="slideshow"><!--SLIDER-->
<ul id="slides">
<li><img src="images/sliderchorizosoup.jpg" alt="Chorizo Soup" /></li>
<li><img src="images/sliderlamblegsteak.jpg" alt="Lamb Leg Steak" /></li>
<li><img src="images/sliderdessert.jpg" alt="Dessert" /></li>
</ul>
</div><!--SLIDER-->