如何动画jquery load() [英] how to animate jquery load()
本文介绍了如何动画jquery load()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好我使用这段代码从另一个php文件加载内容。
hello im using this code to load content from another php file.
$(document).ready(function(){
setInterval(function(){
$('.live-stream ul').each(function(){
$(this).load('tx.php');
});
}, 1000);
});
这是正常的,但我希望脚本在添加新记录时,每个li淡出,任何人?
this works correctly but i want script to fadeIn each "li" when a new record added, anyone?
我想做的事情就像Facebook的主页用户操作Feed一样,位于facebook主页的右上方
the thing i want to do is something like facebook's live user action feed that on the right top of facebook home
推荐答案
你必须先隐藏它。
$(this).hide().load("tx.php").fadeIn('500');
这篇关于如何动画jquery load()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文