我有以下标记。控制淡入和淡出的动画
<ul id="ticker">
<li><q> Education, then, beyond all other devices of human origin, is the great equalizer of the conditions of men, the balance-wheel of the social machinery </q><cite>Horace Mann</cite></li>
<li><q> The roots of education are bitter, but the fruit is sweet </q><cite>Aristotle</cite></li>
<li><q> Education is what remains after one has forgotten everything he learned in school </q><cite>Albert Einstein</cite></li>
<li><q> Education is the most powerful weapon which you can use to change the world </q><cite>Nelson Mandela</cite></li>
<li><q> Formal education will make you a living; self-education will make you a fortune </q><cite>Jim Rohn</cite></li>
</ul>
和下面的脚本
<script>
function tick()
{
$('#ticker li:first').animate({'opacity':0}, 2000, function() { $(this).appendTo($('#ticker')).css('opacity', 1); });
}
setInterval(function(){ tick() }, 8000);
</script>
的问题是文字淡出,但很好用闪光灯重新出现。任何方式我都可以使淡入淡出。
我相信你已经有了一些样式,所以这是我个人的享受比任何东西更多,但看看:http://jsfiddle.net/ffe6q/5/ – Shmiddty
这是非常好的。谢谢 – Jawad