Can someone Explain this jQuery code?

前端 未结 3 768
悲哀的现实
悲哀的现实 2021-01-25 06:13

This code is taken from http://wilq32.googlepages.com/wilq32.rollimage222, and is supposed to animate an image rotation.

I can\'t figure out the structure exactly, and h

3条回答
  •  失恋的感觉
    2021-01-25 06:36

    The bind parameter according to the docs is specific to the rotateimage object. Instead I think you just want to use the rotate function when your event fires off.

    $(document).ready(function()
    {
         $('#divY').mouseover( $('#divX').rotate({angle:35}) );
         $('#divY').mouseout( $('#divX').rotate({angle:-85}) ); 
    });
    

提交回复
热议问题