I have a simple slide with a progress indication similar to https://polylux.dev/book/toolbox/progress.html, with the exception that I do
#set page(header: my-progress) to add the progress to each slide.
When I create the nth slide with an animation:
#slide[
=== tst
reveal-code(lines: (1,2,3), after:gray)[```
A
B
C```]
]
The PDF creates the slide n for the slide with A highlighted, and the slides numbered with n+1 for the other subslides and the next slide.