Rotate(degree) image with jQuery slider


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $("#sliderLeft").slider({
  2. animate: true,
  3. values:180,
  4. min: 0,
  5. max: 180,
  6. step: 1,
  7. slide: function(event, ui) {
  8. $("#amountLeft").val('Degree ' + ui.value); // show Dynamic changes of slider value
  9. $("#pic").rotateLeft(1); // <img border="0" src="/images/mma.gif" name="pic" id="pic">
  10. },
  11. }
  12.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.