Skip to content

Commit

Permalink
docs: add missing parts in features/click-marker.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Dec 8, 2024
1 parent b35a126 commit db775ad
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/features/click-marker.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ description: |

# Click Markers

For some slides you might have longer notes that could be hard to find your place. Slidev supports click markers that allow highlighting and auto-scrolling to the section of notes from your corresponding content. Put `[click]` markers in your notes for the timing you need to go to another [click](/guide/animations#click-animation), Slidev divides the content between the click markers and highlights it in presenter notes, synchronized with your slide progress.
For some slides you may have longer notes that could be hard to find your place. Slidev supports click markers that allow highlighting and auto-scrolling to the section of notes from your corresponding content. Put `[click]` markers at the beginning of any line in your notes for the timing you need to go to another [click](/guide/animations#click-animation). You may skip `n` clicks by using `[click:{n+1}]`. For example:

```md
<!--
Content before the first click

[click] This will be highlighted after the first click

Also highlighted after the first click

- [click] This list element will be highlighted after the second click

[click:3] Last click (skip two clicks)
-->
```

Slidev divides the content between the click markers and highlights it in presenter notes, synchronized with your slide progress.

<video src="https://github.com/slidevjs/slidev/assets/11247099/40014e34-67cd-4830-8c8d-8431754a3672" controls rounded shadow w-full></video>

0 comments on commit db775ad

Please sign in to comment.