I/we figured out, that transitions which end/start at a opacity of 0.2 do not look fluent. When set to 0.1 the transition look smoother.

bzr-revno: 2205
This commit is contained in:
Andreas Preikschat 2013-03-13 10:33:22 +01:00
commit 6c98df064f
1 changed files with 2 additions and 2 deletions

View File

@ -164,8 +164,8 @@ sup {
text.innerHTML = new_text;
return;
}
// Fade text out. 0.2 to minimize the time "nothing" is shown on the screen.
text.style.opacity = '0.2';
// Fade text out. 0.1 to minimize the time "nothing" is shown on the screen.
text.style.opacity = '0.1';
// Fade new text in after the old text has finished fading out.
timer = window.setTimeout(function(){_show_text(text, new_text)}, 400);
}