Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8680807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:20:38+00:00 2026-06-12T21:20:38+00:00

I am using this jQuery plugin: http://code.google.com/p/jqueryrotate/wiki/Documentation I have the plugin working and everything,

  • 0

I am using this jQuery plugin: http://code.google.com/p/jqueryrotate/wiki/Documentation

I have the plugin working and everything, however what I want to be able to do is to click a button to rotate the image, and each time you click the button it rotates +/- 90 degrees continuously, not just to a certain degree. I’m not quite sure how I could accomplish this with this plugin.

Ideally the code below would do what I want, though it doesn’t.

$("body").on("click", ".theater-wrapper img", function(){

    $(".theater-wrapper .current").rotate(+90);

});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T21:20:40+00:00Added an answer on June 12, 2026 at 9:20 pm

    Something like this?

    $("body").on("click", ".theater-wrapper img", function(){
    
        $(".theater-wrapper .current").rotate(getNextAngle());
    
    });
    
    nextAngle = 0;
    function getNextAngle() {
        nextAngle += 90;    
        if(nextAngle >= 360) {
            nextAngle = 0;
        }
        return nextAngle;
    }
    

    Probably not a big deal, but to avoid getting a huge number you could reset the value to 0 when needed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using this jquery plugin: http://code.google.com/p/jqueryrotate/wiki/Documentation and I rotate an image 90 degrees either
I have a form which is built dynamically using this jQuery plugin http://code.google.com/p/jquery-dynamic-form/ When
the jquery plugin that im using is this http://code.google.com/p/jquery-in-place-editor/ if i have a table
I'm using this plugin for jquery called resize-crop: http://code.google.com/p/resize-crop/ The problem with this is
I am using the jquery-ui-map plugin (http://code.google.com/p/jquery-ui-map/). I have successfully created a map using
I am using this jQuery plugin: http://api.jquery.com/slideToggle/ I have this code: <div id=panel><form action=postit.php
Im using this jquery plugin for searching text : http://code.google.com/p/jquery-highlight/downloads/list .. But im not
I'm using the Jquery plugin, Rotate v2.2. http://code.google.com/p/jqueryrotate/ In IE7 I see the following
I'm using this jquery plugin to make my select dropdown boxes look nicer. http://code.google.com/p/select-box/
I'm using a tutorial plugin - http://particlebits.com/code/jquery-tutorial/ which has this code attached to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.