次のコードが正常に動作しています。li の内部には、不透明度をアニメーション化する必要がある要素があるため、li が表示されたときにテキストが表示されます。これがアニメーションのときに li を埋めようとするテストの影響を避けるために、見苦しく見えます。
私が試したことはすべてうまくいきません
jQuery('.item2').waypoint(function(direction) {
jQuery(this).animate({'opacity':1},'fast', function(){
jQuery(this).find('.article-info li').each(function() {
var li = jQuery(this);
jQuery(document).queue(function(n) {
li.animate(
{width:'show'},
{queue: true, duration: 150, specialEasing: {width: 'easeOutQuart'},
complete:n//call the next item in the queue
});
});
});
});
私は運がないのでこれを試しました
jQuery('.item2').waypoint(function(direction) {
jQuery(this).animate({'opacity':1},'fast', function(){
jQuery(this).find('.article-info li').each(function() {
var li = jQuery(this);
jQuery(document).queue(function(n) {
li.animate(
{width:'show'},
{queue: true, duration: 150, specialEasing: {width: 'easeOutQuart'}
}).find('.titleofpost').animate({'opacity':1},{queue: true,complete:n//call the next item in the queue
});
});
});
});
});