jQuery 带放大和缩小的动画

jQuery Animation with Zoom In & Zoom Out

我想在页面加载时自动使用 jQuery 为徽标制作动画。首先图像需要缩小然后放大,它会变成不同的 image.How 我可以用 jQuery 做这个吗?请帮我。这是我的代码:

$(document).ready(function() {
   
   $( "#minion" ).animate({
    height: '50%',
    width: '50%'
   }, 3000,
   function() {
    $( "#minion" ).animate({
     opacity: 0.5
    }, 1000,
    function() {
     $("#logo").html( $(".hiddendiv img, .hiddendiv div").clone() );
    });
   });

  });
.hiddendiv {
    display: none;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<div id="logo">
  <img id="minion" src="images/logo.png" />
</div>
            <div class="hiddendiv">
                <img src='images/logo-small.png' />
                <div>complete transformation</div>
            </div>

谢谢

你可以用这个 fiddle jsfiddle.net/d7UjD/9

做类似的事情
<img id="zoomimg" src="http://www.google.com/images/srpr/logo3w.png"
width="144" height="48" border="0" />
$(document).ready(function(){
  $('#zoomimg').css("cursor","pointer");
  $('#zoomimg').animate({width: "50%", height: "50%"}, 'slow');

  setTimeout(function() {
    $('#zoomimg').animate({width: "28%"}, 'slow');
  }, 1000 ); 
});