From: Andrew Dolgov Date: Thu, 4 Aug 2011 07:56:43 +0000 (+0400) Subject: add experimental fade-in effect for autoloaded headlines X-Git-Tag: 1.5.6~64 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c3fed9e63d60ec3aa1c4067efb848670c797112b;p=tt-rss.git add experimental fade-in effect for autoloaded headlines --- diff --git a/viewfeed.js b/viewfeed.js index 3a16edfa..ed3b897e 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -101,6 +101,7 @@ function headlines_callback2(transport, feed_cur_page) { c.domNode.removeChild(hsp); $$("#headlines-tmp > div").each(function(row) { + row.style.display = 'none'; c.domNode.appendChild(row); }); @@ -120,6 +121,12 @@ function headlines_callback2(transport, feed_cur_page) { initHeadlinesMenu(); + $$("#headlines-frame > div[id*=RROW]").each( + function(child) { + if (!Element.visible(child)) + new Effect.Appear(child, { duration : 0.5 }); + }); + } else { console.log("no new headlines received");