You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guide/animations.md
+37-1Lines changed: 37 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -239,7 +239,7 @@ You can override them to customize the transition effects in your custom stylesh
239
239
For example, you can achieve the scaling up transitions by:
240
240
241
241
```css
242
-
// styles.css
242
+
/* styles.css*/
243
243
244
244
.slidev-vclick-target {
245
245
transition: all500msease;
@@ -267,6 +267,42 @@ To specify animations for only certain slide or layout
267
267
268
268
Learn more about [customizing styles](/custom/directory-structure#style).
269
269
270
+
## Rough Markers
271
+
272
+
> Available since v0.48.0
273
+
274
+
Slidev integrates [Rough Notation](https://github.com/linkstrifer/react-rough-notation) to allow marking or highlighting elements in your slides.
275
+
276
+
### `v-mark`
277
+
278
+
Rough Notation integrates comes with the `v-mark` directive.
279
+
280
+
#### Type
281
+
282
+
`v-mark.underline` for Underline mark, `v-mark.circle` for Circle mark, etc. Default to `underline`
283
+
284
+
#### Color
285
+
286
+
`v-mark.red` make the notation `red`. Supported builtin color themes from UnoCSS. For custom colors, use object syntax `v-mark="{ color: '#234' }"`
287
+
288
+
#### Clicks
289
+
290
+
`v-mark` works like `v-click` and will trigger after a click. Same as `v-click`, it allows you to pass a custom click value, like `v-mark="5"` or `v-mark="'+1'"`.
291
+
292
+
#### Options
293
+
294
+
Optionally you can pass an object to `v-mark` to specify the options, for example:
Slidev has [@vueuse/motion](https://motion.vueuse.org/) built-in. You can use the `v-motion` directive to any elements to make apply motion on them. For example
0 commit comments