动画队列,第一个动画的字体变大和第二个动画的元素高度增加同时进行,两个动画完成之后,才触发第3个动画

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
            <script type="text/javascript" src="../js/jquery-1.8.0.js" ></script>
        <title></title>
        <script type="text/javascript"> $(function(){ $("input").click(function(){ $("div").animate( {height:"120%"}, {duration:5000,queue:false} ).animate({ fontSize:"10em" },1000).animate({ opacity:0 },2000); }) }) </script>
    </head>
    <body>
        <input type="button" value="自定义动画" />
        <div style="border: solid 1px red;">自定义动画</div>
    </body>
</html>

你可能感兴趣的:(动画,javaSpring)