返回 slidev
animation-rough-marker.md
根目录 / skills / slidev / references / animation-rough-marker.md
1 ---
2 name: rough-marker
3 description: Hand-drawn style highlighting using Rough Notation
4 ---
5
6 # Rough Markers
7
8 Hand-drawn style highlighting using Rough Notation.
9
10 ## v-mark Directive
11
12 ```html
13 <span v-mark>Important text</span>
14 ```
15
16 ## Marker Types
17
18 ```html
19 <span v-mark.underline>Underlined</span>
20 <span v-mark.circle>Circled</span>
21 <span v-mark.highlight>Highlighted</span>
22 <span v-mark.strike-through>Struck through</span>
23 <span v-mark.box>Boxed</span>
24 ```
25
26 ## Colors
27
28 ```html
29 <span v-mark.red>Red marker</span>
30 <span v-mark.blue>Blue marker</span>
31 ```
32
33 Custom color:
34 ```html
35 <span v-mark="{ color: '#234' }">Custom color</span>
36 ```
37
38 ## Click Timing
39
40 Works like v-click:
41
42 ```html
43 <span v-mark="5">Appears on click 5</span>
44 <span v-mark="'+1'">Next click</span>
45 ```
46
47 ## Full Options
48
49 ```html
50 <span v-mark="{ at: 5, color: '#234', type: 'circle' }">
51 Custom marker
52 </span>
53 ```
54
54 lines MARKDOWN