我得到了AJAX后得到像下面的最新评论:淡出的背景颜色与jQuery
function add_the_answer_to_the_list(dataString)
{
// append this damn comment to the list
$.ajax
({
type: "POST",
url: "home/get_answer/",
data : dataString,
success: function(data)
{
var data = jQuery.parseJSON(data);
//append the comment
$(
'<li><article>'+data+ '</article></li>'
).hide().prependTo("#answer_list ul").fadeIn();
}
});
现在,当评论中我应该怎么办褪色突出与红色注释,然后慢慢地淡化背景颜色回到原来的颜色?有没有办法做到这一点,没有插件的东西?
感谢
不支持IE! – iappwebdev
好主意,你会给我一个例子如何在代码上实现该技术? – under5hell
举个例子,在http://www.w3schools.com/css3/tryit.asp?filename = trycss3_transition1 – iappwebdev