他の 1 つの div 内のいくつかの div 要素:
<div id="divs1">
<div class = "type1">1</div>
<div class = "type1">2</div>
...
</div>
他の要素をクリックすると、各要素の幅と高さが 10 ピクセルずつ増加します。
$divs1 = $('#divs1').children()
$('#increaseThem').click(function(){
$divs1.animate({
top: ?????.css('top') + 10 +'px',
},
{duration:'normal',
queue: false,
})
})
プロパティでアニメーション要素の属性を取得するには? 代わりに何をすべきか (?????) ? ps。アニメーション要素ごとに幅と高さが異なります