ryanflorence / jquery-rf-slideshow

Super flexible, low-level jQuery slideshow built on the jquery.widget system
60 stars 4 forks source link

Question: Only the first slide acknowledges the width & height properties #7

Open digitalformula opened 11 years ago

digitalformula commented 11 years ago

This is my JS (very simple):

$('#slideshow').slideshow({ duration: 600, delay: 5000, transition: 'push(left)', autoPlay: true, selector: 'div.slide' });

And here's the markup:

<div id="slideshow" style="width: 940px; height: 300px;"> <div class="slide">Slide 1.</div> <div class="slide">Slide 2.</div> <div class="slide">Slide 3.</div> </div>

The first slide is fine, but all others only seem to have a width of maybe 100px, maximum. I've tried using very little text and a lot of text (e.g. a Lorem Ipsum paragraph).

What could be causing this?

Thanks! slider