How do we add css + animation in jquery?

后端 未结 5 1757
耶瑟儿~
耶瑟儿~ 2021-02-15 12:26

Here is a little snippet of what I\'m trying to do:

$(\'#why-red a\').hover(function() {
    $(this).animate({ -webkit-transform: \'scale(1.1)\'  }, \'slow\');           


        
5条回答
  •  北海茫月
    2021-02-15 12:52

    Another option to those mentioned above is Transit JS.

    Using transit js you can call...

    $('.className').transition({ scale: 1.0, duration: 400 });
    

    Transit JS: http://ricostacruz.com/jquery.transit/

提交回复
热议问题