jquery果凍抖動效果實現(xiàn)方法

字號:


    這篇文章主要介紹了jquery果凍抖動效果實現(xiàn)方法,涉及animate方法的使用技巧,具有一定參考借鑒價值,需要的朋友可以參考下
    本文實例講述了jquery果凍抖動效果實現(xiàn)方法。分享給大家供大家參考。
    具體實現(xiàn)方法如下:
    代碼如下:
    <html>
    <head>
    <script type="text/javascript" src="jquery-1.8.2.min.js"></script>
    <script type="text/javascript">
    $(function(){
    $("div").mouseover(function(){
    $(this).animate({"width":"320","height":"100"},100);
    $(this).animate({"width":"310","height":"90"},100);
    }).mouseout(function(){
    $(this).animate({"width":"300","height":"80"},100);
    });
    });
    </script>
    <style type="text/css">
    div{width:300px;height:80px;border-radius:8px;background:green;margin-top:10px;}
    </style>
    </head>
    <body>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    </body>
    </html>
    希望本文所述對大家的jQuery程序設計有所幫助。