Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery problems with image rotate and zoom
    primarykey
    data
    text
    <p>I am trying to add functionality to a webpage that will allow the user to rotate and zoom in on images. I've found many jquery plugins that allow for zooming. None that also do rotation though. So I'm trying to use a jquery plugin for zooming/panning in conjunction with CSS for handling the rotation, but so far unsuccessfully. It doesn't seem to matter if I apply the CSS before adding the jquery plugin, or after. Or chaining them together (again, tried both rotating before and after the zoom plugin for the chaining, and nothing seems to work).</p> <p>for reference, my code is below:</p> <p><strong>HTML:</strong></p> <pre><code>&lt;body&gt; &lt;script src="scripts/jquery-1.6.4.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="zoom_assets/jquery.smoothZoom.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="scripts/PictureViewer_SmoothZoom.js" type="text/javascript"&gt;&lt;/script&gt; &lt;img src="images/leaftemple11680.jpg" id="leafTemple" /&gt; &lt;/body&gt; </code></pre> <p><strong>CSS:</strong></p> <pre><code>.rotate90Left{ /* for firefox, safari, chrome, etc. */ -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); /* for ie */ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); } </code></pre> <p><strong>JavaScript:</strong></p> <pre><code>//jquery chain - add CSS second $(document).ready(function(){ $('#leafTemple').smoothZoom({ width: 480, height: 360 }).addClass('rotate90Left'); }); </code></pre> <p>the zoom/pan plugin i am using is from here:</p> <p><a href="http://codecanyon.net/item/smooth-zoom-pan-jquery-image-viewer/511142" rel="nofollow">http://codecanyon.net/item/smooth-zoom-pan-jquery-image-viewer/511142</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload