Ruotare le immagini con Canvas jQuery

Sviluppato da Pawel Witkowski, Wilq32.RotateImage è un interessante plugin per jQuery che vi permetterà di ruotare facilmente le vostre immagini.

Qui sotto potete vedere un esempio di codice, che produce l’effetto sotto mostrato:

// just do it 5 degrees
$('#image2').rotate({angle:5});
// animate the rotation
var rot=$('#image3').rotate({maxAngle:25,minAngle:-55,
bind: [
{"mouseover":function(){rot.rotateAnimation(85);}},
{"mouseout":function(){rot.rotateAnimation(-35);}}
]
});

Scrivi un Commento