As an alternate way of fading in your text you could use the following code. First, put this in your Stylesheet section:
.delayed {
opacity: 0;
}
Then put this in your JavaScript section:
/* Delayed Text code - Start */
$(document).on(':passagerender', function (ev) {
// Find all elements containing the delayed class.
var elems = $(ev.content).find('.delayed');
// Appearance delay (in milliseconds) between each delayed text block.
var delay = 1000; // 1 second fade-in
if (elems.length > 0) {
elems.each(function (i) {
$(this)
.delay(delay * (i + 1))
.fadeTo(delay, 1);
});
}
});
/* Delayed Text code - End */
Now to have your text appear delayed, just put "@@.delayed; ...your text here... @@" around your text, like this:
First paragraph (non-delayed).
@@.delayed;Second paragraph.@@
@@.delayed;Third paragraph.@@
@@.delayed;Fourth paragraph.@@
That will cause each successive ".delayed" block to appear one after another.
Hope that helps! :-)