Repository navigation
Slide to start with v-mark already rendered #2828
|
How can I have I have tried using In the following examples, I want slides 6 and 8 to start with list items already stroke through. With
|
Replies: 1 comment 2 replies
|
Add ---
preload: false
---
# Outline
* <span v-mark="{ at: '+0', type: 'strike-through', animate: false }">first</span>
* <span v-mark="{ at: '+0', type: 'strike-through', animate: false }">second</span>
* <span v-mark.strike-through>third</span>
* <span v-mark.highlight.yellow.delay800="'+0'">fourth</span>
Why: I reproduced it on v53.1.0 with your deck: after navigating 5 to 6 the strike-through path stays It's still a bug worth an issue. I didn't find an existing one. |
Add
preload: falseto the frontmatter of the outline slides. Your'+0'andclicksStartvalues are fine: the mark is drawn, but at 0x0 size, because Slidev mounts the next slide in advance while it is hidden.animate: falseis optional, it just skips the drawing animation for the items that are already done. YourclicksStartvariant also works oncepreload: falseis added.Why:
SlidesShow…