Is it possible to have the first fragment automatically visible in reveal.js?
I am utilizing the text colour highlight feature in reveal.js to make the most recent fragment appear with a slightly brighter color, drawing attention to that specific section. The text returns to its normal color once the next fragment is revealed.
When I set the first line of text as a non-fragment, it shows up immediately but remains in the regular text color. If I designate it as a fragment, I need to advance one slide for it to be visible (which is an acceptable solution, though not my preference). However, the highlight color does work when it is configured as a fragment.
Here is an example of the markup used:
<section>
<h2>Highlight First Line Test</h2>
<p class="fragment highlight-current">Want this line visible <i>and</i> color highlighted on slide entry</p>
<p class="fragment highlight-current">Appears 2nd with color highlight</p>
</section>
Below is the CSS override applied to integrate the custom highlighting function into reveal.js:
.reveal .slides section .fragment.highlight-current.current-fragment {
color: #f00;
}
(I also explored autoslide but could not achieve the desired outcome).