Say I have a simple reveal.js
slide like this:
<section>
<h1>Title</h1>
<p >Text</p>
<p class="fragment">Fragment</p>
</section>
I'd like to change Text
colour to red after Fragment
appears on screen. How should I do it?
You could simply do
<section>
<h1>Title</h1>
<p class="fragment highlight-red" data-fragment-index="1" >Text</p>
<p class="fragment data-fragment-index="1"">Fragment</p>
</section>
That way, the red text and the "Fragment" text will always be in sync.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With