jQueryを使用してアニメーションのリストをシーケンスしたいと思います。以下は私のコードですが、構文エラーがあるようです。アニメーションキューを有効にする方法
$(document).ready(function()
{
$('p:first').animate({height: 'hide'}, 'easeOutCirc');
$('p:first').animate({height: 'show'}, 1000, 'easeOutElastic');
},
{
$('#Op-Excellence').animate({height: 'hide'}, 500, 'easeOutCirc');
$('#Op-Excellence').animate({height: 'show'}, 2000, 'easeOutBounce');
},
{
$('#Lenti').animate({height: '+=300px'}, 'easeInSine');
$('#Lenti').animate({height: '-=300px'}, 2500, 'easeOutSine');
},
{
$('#Higgs').animate({paddingRight: '+=300px'}, 'easeInSine');
$('#Higgs').animate({paddingRight: '-=300px'}, 3500, 'easeOutSine');
$('#Ferrari').animate({height: '+=150px'}, 'easeInSine');
$('#Ferrari').animate({height: '-=150px'}, 3000, 'easeOutSine');
$('#Tatia').animate({paddingLeft: '+=300px'}, 'easeInSine');
$('#Tatia').animate({paddingLeft: '-=300px'}, 2500, 'easeOutSine');
$('#Charrey').animate({paddingBottom: '+=300px'}, 'easeInSine');
$('#Charrey').animate({paddingBottom: '-=300px'}, 2500, 'easeOutSine');
$('#Zur').animate({width: '-=50%'}, 'easeInSine');
$('#Zur').animate({width: '+=50%'}, 3000, 'easeOutSine');
$('#jQueryFiorentini').animate({height: 'hide'}, 500, 'easeInSine');
$('#jQueryFiorentini').animate({height: 'show'}, 2500, 'easeOutSine');
queue: true
});
hide/showは、「高さ」の値にすることはできません。 –