pisi / Reel

The premier 360° solution for jQuery.
http://reel360.org
MIT License
690 stars 210 forks source link

Image doesn't fit or resize #297

Open Slevender opened 8 years ago

Slevender commented 8 years ago

Hey,

Enjoying the project so far, but have a problem. It may be some simple mistake I made but I have quite big images that dont fit the img tag frame. When I refresh the page I see the first img in a 'correct' size(fitting the img tag) for a half a second, but then the image goes to its original size and I can only see a partion of the image thru the img tag frame.

Here's a screenshot of what I see on the frist 0.5 second after the refresh: Correct

Here's a screenshot of what I see after: Incorrect

Thanks, Den

adamparker commented 8 years ago

This code works for me:

  <div style="height:100px;width:600px;">
  <img src="image-01.jpg" class="reel" id="my_picture"
        data-for="my_picture"
        data-responsive="true"
        data-cw="true"
        data-indicator="25"
        data-images="image-##.jpg|01..08"/>
  </div>