我有下一个代码正常工作。在 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
});
});
});
});
});