JQuery Drag and Dreh in WinkelJquery

JQuery-Programmierung
Anonymous
 JQuery Drag and Dreh in Winkel

Post by Anonymous »

Ich verwende JQuery UI, um ein Bild zu ziehen und zu fallen. Ich möchte auch das Bild um 360 Grad drehen, damit ich mich wie in Photoshop bewegen und drehen kann. Ich verwende das JQuery -Dreh -Plugin, um das Bild auf Klicken zu drehen, aber ich möchte eine Ecke auswählen und das Bild in einen beliebigen Winkel drehen.

Code: Select all

var test = 5;
$(function()
{
$('#rotate').draggable({ containment: 'frame' });
$('#frame img').live('mousedown', function(event)
{
test = test + 15;
$(this).rotate({ angle: test });
});
});

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post