返回 slidev
animation-click-marker.md
根目录 / skills / slidev / references / animation-click-marker.md
1 ---
2 name: click-marker
3 description: Highlight and auto-scroll presenter notes based on click progress
4 ---
5
6 # Click Markers
7
8 Highlight and auto-scroll presenter notes based on click progress.
9
10 ## Syntax
11
12 Add `[click]` markers in presenter notes:
13
14 ```md
15 <!--
16 Content before the first click
17
18 [click] This will be highlighted after the first click
19
20 Also highlighted after the first click
21
22 - [click] This list element highlights after the second click
23
24 [click:3] Last click (skip two clicks)
25 -->
26 ```
27
28 ## Behavior
29
30 - Notes between markers highlight in sync with slide progress
31 - Auto-scrolls presenter view to active section
32 - Use `[click:{n}]` to skip to specific click number
33
34 ## Requirements
35
36 - Only works in presenter mode
37 - Notes must be HTML comments at end of slide
38
38 lines MARKDOWN