-
-
-
---
-transition: fade-out
+src: ./pages/02-slide.md
---
-
-# What is Slidev?
-
-Slidev is a slides maker and presenter designed for developers, consist of the following features
-
-- 📝 **Text-based** - focus on the content with Markdown, and then style them later
-- 🎨 **Themable** - themes can be shared and re-used as npm packages
-- 🧑💻 **Developer Friendly** - code highlighting, live coding with autocompletion
-- 🤹 **Interactive** - embed Vue components to enhance your expressions
-- 🎥 **Recording** - built-in recording and camera view
-- 📤 **Portable** - export to PDF, PPTX, PNGs, or even a hostable SPA
-- 🛠 **Hackable** - virtually anything that's possible on a webpage is possible in Slidev
-
-
-
-
-Read more about [Why Slidev?](https://sli.dev/guide/why)
-
-
-
-
-
-
-
----
-
-transition: slide-up
-level: 2
----
-
-# Navigation
-
-Hover on the bottom-left corner to see the navigation's controls panel, [learn more](https://sli.dev/guide/ui#navigation-bar)
-
-## Keyboard Shortcuts
-
-| | |
-| -------------------------------------------------- | --------------------------- |
-| right / space | next animation or slide |
-| left / shiftspace | previous animation or slide |
-| up | previous slide |
-| down | next slide |
-
-
-
-
-
Here!
-
----
-
-layout: two-cols
-layoutClass: gap-16
----
-
-# Table of contents
-
-You can use the `Toc` component to generate a table of contents for your slides:
-
-```html
-
-```
-
-The title will be inferred from your slide content, or you can override it with `title` and `level` in your frontmatter.
-
-::right::
-
-
-
----
-
-layout: image-right
-image: https://cover.sli.dev
----
-
-# Code
-
-Use code snippets and get the highlighting directly, and even types hover!
-
-```ts [filename-example.ts] {all|4|6|6-7|9|all} twoslash
-// TwoSlash enables TypeScript hover information
-// and errors in markdown code blocks
-// More at https://shiki.style/packages/twoslash
-import { computed, ref } from "vue";
-
-const count = ref(0);
-const doubled = computed(() => count.value * 2);
-
-doubled.value = 2;
-```
-
-
-
-
-
-<<< @/snippets/external.ts#snippet
-
-
-
-[Learn more](https://sli.dev/features/line-highlighting)
-
-
-
-
-
-
----
-
-level: 2
----
-
-# Shiki Magic Move
-
-Powered by [shiki-magic-move](https://shiki-magic-move.netlify.app/), Slidev supports animations across multiple code snippets.
-
-Add multiple code blocks and wrap them with ````md magic-move (four backticks) to enable the magic move. For example:
-
-````md magic-move {lines: true}
-```ts {*|2|*}
-// step 1
-const author = reactive({
- name: "John Doe",
- books: ["Vue 2 - Advanced Guide", "Vue 3 - Basic Guide", "Vue 4 - The Mystery"],
-});
-```
-
-```ts {*|1-2|3-4|3-4,8}
-// step 2
-export default {
- data() {
- return {
- author: {
- name: "John Doe",
- books: ["Vue 2 - Advanced Guide", "Vue 3 - Basic Guide", "Vue 4 - The Mystery"],
- },
- };
- },
-};
-```
-
-```ts
-// step 3
-export default {
- data: () => ({
- author: {
- name: "John Doe",
- books: ["Vue 2 - Advanced Guide", "Vue 3 - Basic Guide", "Vue 4 - The Mystery"],
- },
- }),
-};
-```
-
-Non-code blocks are ignored.
-
-```vue
-
-
-```
-````
-
----
-
-# Components
-
-
-
-
-You can use Vue components directly inside your slides.
-
-We have provided a few built-in components like ``, ``, and `` that you can use directly. And adding your custom components is also super easy.
-
-```html
-
-```
-
-
-
-
-Check out [the guides](https://sli.dev/builtin/components.html) for more.
-
-
-
-
-```html
-
-```
-
-
-
-
-
-
-
-
----
-
-class: px-20
----
-
-# Themes
-
-Slidev comes with powerful theming support. Themes can provide styles, layouts, components, or even configurations for tools. Switching between themes by just **one edit** in your frontmatter:
-
-
-
-Read more about [How to use a theme](https://sli.dev/guide/theme-addon#use-theme) and
-check out the [Awesome Themes Gallery](https://sli.dev/resources/theme-gallery).
-
----
-
-# Clicks Animations
-
-You can add `v-click` to elements to add a click animation.
-
-
-
-This shows up when you press space or right, or click outside the slide on the right.
-
-```html
-
This shows up when you trigger a click animation.
-```
-
-
-
-
-You can also add modifiers to change the animation:
-
-
-
-
-
v-click.up
-
Slide from bottom
-
-
-
v-click.fade-in
-
Fade in
-
-
-
v-click.fade
-
Dim (0.5 opacity)
-
-
-
v-click.fade.right.scale
-
Composed
-
-
-
v-click.none
-
No transition
-
-
-
-
-
-The v-mark directive
-also allows you to add
-inline marks
-, powered by [Rough Notation](https://roughnotation.com/):
-
-```html
-inline markers
-```
-
-
-
-