<body>
- <div class="slideshow" onmouseenter="mouseEnter()" onmouseleave="mouseLeave()">
+ <div class="slideshow">
+ <div class="slides">
- <figure class="slide">
- <img src="test-img/1.jpg">
- <figcaption><span>This is a long caption yeah yeah yeah</figcaption>
- </figure>
+ <figure class="slide">
+ <img src="test-img/1.jpg">
+ <figcaption>This is a caption</figcaption>
+ </figure>
- <figure class="slide">
- <img src="test-img/2.jpg">
- <figcaption><span>Shorter caption</figcaption>
- </figure>
+ <figure class="slide">
+ <img src="test-img/2.jpg">
+ <figcaption><span>This is a long caption which will probably span over multiple lines (depending on the width of the slideshow). You will see that that the height of the image adjusts to accommodate the taller caption.</figcaption>
+ </figure>
- <figure class="slide">
- <img src="test-img/3.jpg">
- <figcaption><span>Caption 3</figcaption>
- </figure>
+ <figure class="slide">
+ <img src="test-img/3.jpg">
+ <figcaption>Caption 3</figcaption>
+ </figure>
- <a id="prev" onclick="prevSlide()">❮</a>
- <a id="next" onclick="nextSlide()">❯</a>
- <a id="state" onclick="changeState()">⏸︎</a>
+ </div>
+
+ <a id="prev">❮</a>
+ <a id="next">❯</a>
+ <a id="state">⏸︎</a>
<div id="controls">
- <span class="dot" onclick="setSlide(0)"></span>
- <span class="dot" onclick="setSlide(1)"></span>
- <span class="dot" onclick="setSlide(2)"></span>
+ <span class="dot"></span>
+ <span class="dot"></span>
+ <span class="dot"></span>
</div>
</div>