Flip image jq

Click on the image rotated 180 degrees, jquery code is as follows

  

      var deg = 0; // definition of flip angle, 180,360 
      $ ( 'CON Table.') Find ( 'I') the Click (function () {.. 
        deg + = 180 [; each machine is added after a point angle 
    
        // additional flip to the picture of style, the Transform: Rotate (180deg) 
        . $ (the this) .find ( "img") CSS ( "the Transform", "Rotate (" + deg + "deg)"); 
        $ (the this) .parent . () .parent () parent () Next () Toggle ();.. 
      })

Guess you like

Origin www.cnblogs.com/wxsblogs/p/11959552.html