Transform in jQuery

后端 未结 9 1179
野趣味
野趣味 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:58

    If you're using jquery, jquery.transit is very simple and powerful lib that allows you to make your transformation while handling cross-browser compability for you. It can be as simple as this : $("#element").transition({x:'90px'}). Take it from this link : http://ricostacruz.com/jquery.transit/

提交回复
热议问题