Loop

Loop the last and the first frame for seamless transition using data-loop="true":

<div class="fotorama"
     data-loop="true">
  <img src="1.jpg">
  <img src="2.jpg">
</div>

Loop example (new window):

Requires three or more images.