Replies: 1 comment
-
you can use JavaScript to dynamically assign the fragment-index based on the class of each element , this will make your slide code cleaner let s give it a try:
place this script before closing tag of your HTML file, or include it in your JavaScript files loaded at the end of the document. Make sure it runs after the RevealJS library has been initialized to ensure proper functionality. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a RevealJS slide with a lot of elements dispersed across the slide, that I would like to make appear at three different times.
Right now, I can write for each element the right fragment, but that is very long to do, and results in a very unreadable code as there are a lot of elements.
Fortunately, the required fragment index also corresponds to existing classes.
Is there a way to bind the fragment index to a specific class?
For example, I'd like all
div.class1
to appear with a fragment-index 1.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions