JQuery rotate
Résolu/Fermé
A voir également:
- JQuery rotate
- Rotate video windows - Guide
- Rotate screen windows - Guide
- Jquery regex ✓ - Forum Javascript
- JQuery non interprété - Forum Wordpress
- Jquery format date - Forum Webmastering
3 réponses
$(document).ready(function(){
$("#img1").rotate({
bind:
{
mouseover : function() {
$(this).rotate({animateTo:180})
},
mouseout : function() {
$(this).rotate({animateTo:5})
}
}
});
});
toujour fair un $(document).ready
$("#img1").rotate({
bind:
{
mouseover : function() {
$(this).rotate({animateTo:180})
},
mouseout : function() {
$(this).rotate({animateTo:5})
}
}
});
});
toujour fair un $(document).ready
flav1313
Messages postés
751
Date d'inscription
mardi 24 août 2010
Statut
Membre
Dernière intervention
22 octobre 2012
100
Modifié par flav1313 le 20/04/2012 à 09:35
Modifié par flav1313 le 20/04/2012 à 09:35
Essaye ceci :
$("#img1").on({ mouseover : function() { $(this).rotate({animateTo:55}) }, mouseout : function() { $(this).rotate({animateTo:0}) } });
flav1313
Messages postés
751
Date d'inscription
mardi 24 août 2010
Statut
Membre
Dernière intervention
22 octobre 2012
100
20 avril 2012 à 10:06
20 avril 2012 à 10:06
Peux-tu m'envoyer les sources de ta page ?
flav1313
Messages postés
751
Date d'inscription
mardi 24 août 2010
Statut
Membre
Dernière intervention
22 octobre 2012
100
20 avril 2012 à 09:56
20 avril 2012 à 09:56
Non, car la bibliothèque rotate est un plugin de JQuery.
20 avril 2012 à 10:53
Je suis tellement, mais tellement naze ! -_-
Merci pour la solution, ça marche parfaitement !
(Et merci quand même à flav1311 pour ton aide ;p )
20 avril 2012 à 10:57
20 avril 2012 à 10:57