jquery果凍抖動(dòng)效果實(shí)現(xiàn)方法

字號(hào):


    這篇文章主要介紹了jquery果凍抖動(dòng)效果實(shí)現(xiàn)方法,涉及animate方法的使用技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下
    本文實(shí)例講述了jquery果凍抖動(dòng)效果實(shí)現(xiàn)方法。分享給大家供大家參考。
    具體實(shí)現(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>
    希望本文所述對(duì)大家的jQuery程序設(shè)計(jì)有所幫助。