From c3fed9e63d60ec3aa1c4067efb848670c797112b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Aug 2011 11:56:43 +0400 Subject: [PATCH] add experimental fade-in effect for autoloaded headlines --- viewfeed.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/viewfeed.js b/viewfeed.js index 3a16edfab..ed3b897e6 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");