Transform in jQuery

后端 未结 9 1173
野趣味
野趣味 2020-12-06 03:24

I\'m trying to get an element to animate a rotation hover effect using jquery, I have this jsFiddle going to test. So Far I have this:

$(\".icon\").hover(fun         


        
9条回答
  •  爱一瞬间的悲伤
    2020-12-06 03:59

    jquery.transform.js is a jquery 2d transform plugin developed by Louis remi. it allows to use transform like css in jquery. visit this link for some illustrations on how to use it. A simple illustration to rotate an element using this plugin is as follows:

    $(elem).animate({transform: 'rotate(135deg)'});
    

提交回复
热议问题