jQuery rotation/transformer

Je voudrais utiliser cette fonction pour faire tourner puis s'arrêter à un point particulier ou à un grade. Maintenant l'élément qui tourne sans s'arrêter. Voici le code:

    <script type="text/javascript">
    $(function() {
       var $elie = $("#bkgimg");
       rotate(0);
       function rotate(degree) {

           //For webkit browsers: e.g. Chrome
           $elie.css({ WebkitTransform: 'rotate(' + degree + 'deg)'});
           //For Mozilla browser: e.g. Firefox
           $elie.css({ '-moz-transform': 'rotate(' + degree + 'deg)'});

           //Animate rotation with a recursive call
           setTimeout(function() { rotate(++degree); },65);
       }
    });
    </script>

Merci pour votre aide

InformationsquelleAutor Andrea | 2011-10-29