それぞれ独自の div 内にある 4 つの異なる小さな画像のサイズをアニメーション化したいと考えています。現在、div をアニメーション化できますが、div 内の画像は変更されません。これを行う方法はありますか?
現在機能している例を次に示します: http://jsfiddle.net/r69Zv/1/
私の現在のJavaScript:
$(document).ready(function () {
$("#green_box_container a").click(function() {
$(this).children().animate({height:105,width:105})
$(this).siblings().children().animate({height:80,width:80})
})
});
編集: $(this).children('img').animate と入力しようとするだけでは機能しないようです ...
どんな助けでも素晴らしいでしょう!!