画像を読み込んで、画像が完成し、さまざまな CSS とアニメーションが完成したら表示します。しかし、画像を呼び出して、関数内の幅と高さを確認したい:
$('.ePage').find('img').each(function(){
var $img = $(this);
$('<img/>').load(function(){
// my css and animations
// need to check height and width
}).attr('src',$img.attr('src'));
});
画像を2回ロードしたくないだけです。これどうやってするの?