Skip to the content.

Welcome to Slidev

Presentation slides for developers

<span @click="$slidev.nav.next" class="px-2 py-1 rounded cursor-pointer" hover="bg-white bg-opacity-10"> Press Space for next page </span>
<button @click="$slidev.nav.openInEditor()" title="Open in Editor" class="text-xl slidev-icon-btn opacity-50 !border-none !hover:text-white"> </button>

transition: fade-out —

What is Slidev?

Slidev is a slides maker and presenter designed for developers, consist of the following features



Read more about Why Slidev?


layout: default —

Table of contents

<Toc minDepth="1" maxDepth="5"></Toc>

transition: slide-up

level: 2

Navigation

Hover on the bottom-left corner to see the navigation’s controls panel, learn more

Keyboard Shortcuts

   
right / space next animation or slide
left / shiftspace previous animation or slide
up previous slide
down next slide

Here!


layout: image-right image: https://source.unsplash.com/collection/94734566/1920x1080 —

Code

Use code snippets and get the highlighting directly![^1]

```ts {all|2|1-6|9|all} interface User { id: number firstName: string lastName: string role: string }

function updateUser(id: number, update: User) { const user = getUser(id) const newUser = { …user, …update } saveUser(id, newUser) }


<arrow v-click="3" x1="400" y1="420" x2="230" y2="330" color="#564" width="3" arrowSize="1" />

[^1]: [Learn More](https://sli.dev/guide/syntax.html#line-highlighting)

<style>
.footnotes-sep {
  @apply mt-20 opacity-10;
}
.footnotes {
  @apply text-sm opacity-75;
}
.footnote-backref {
  display: none;
}
</style>

---

# Components

<div grid="~ cols-2 gap-4">
<div>

You can use Vue components directly inside your slides.

We have provided a few built-in components like `<Tweet/>` and `<Youtube/>` that you can use directly. And adding your custom components is also super easy.

```html
<Counter :count="10" />

<Counter :count=”10” m=”t-4” />

Check out the guides for more.

</div>

```html ```

</div>


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:

```yaml --- theme: default --- ``` ```yaml --- theme: seriph --- ```

Read more about How to use a theme and check out the Awesome Themes Gallery.


preload: false —

Animations

Animations are powered by @vueuse/motion.

<div
  v-motion
  :initial="{ x: -80 }"
  :enter="{ x: 0 }">
  Slidev
</div>
<img v-motion :initial="{ x: 800, y: -100, scale: 1.5, rotate: -50 }" :enter="final" class="absolute top-0 left-0 right-0 bottom-0" src="https://sli.dev/logo-square.png" /> <img v-motion :initial="{ y: 500, x: -100, scale: 2 }" :enter="final" class="absolute top-0 left-0 right-0 bottom-0" src="https://sli.dev/logo-circle.png" /> <img v-motion :initial="{ x: 600, y: 400, scale: 2, rotate: 100 }" :enter="final" class="absolute top-0 left-0 right-0 bottom-0" src="https://sli.dev/logo-triangle.png" />
<div class="text-5xl absolute top-14 left-40 text-[#2B90B6] -z-1" v-motion :initial="{ x: -80, opacity: 0}" :enter="{ x: 0, opacity: 1, transition: { delay: 2000, duration: 1000 } }"> Slidev

</div>

<div v-motion :initial=”{ x:35, y: 40, opacity: 0}” :enter=”{ y: 0, opacity: 1, transition: { delay: 3500 } }”>

Learn More

</div>


LaTeX

LaTeX is supported out-of-box powered by KaTeX.


Inline $\sqrt{3x-1}+(1+x)^2$

Block $$ \begin{array}{c}

\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \

\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \

\nabla \cdot \vec{\mathbf{B}} & = 0

\end{array} $$


Learn more


Diagrams

You can create diagrams / graphs from textual descriptions, directly in your Markdown.

```mermaid {scale: 0.5} sequenceDiagram Alice->John: Hello John, how are you? Note over Alice,John: A typical interaction ``` ```mermaid {theme: 'neutral', scale: 0.8} graph TD B[Text] --> C{Decision} C -->|One| D[Result 1] C -->|Two| E[Result 2] ``` ```mermaid mindmap root((mindmap)) Origins Long history ::icon(fa fa-book) Popularisation British popular psychology author Tony Buzan Research On effectivness
and features On Automatic creation Uses Creative techniques Strategic planning Argument mapping Tools Pen and paper Mermaid ``` ```plantuml {scale: 0.7} @startuml package "Some Group" { HTTP - [First Component] [Another Component] } node "Other Groups" { FTP - [Second Component] [First Component] --> FTP } cloud { [Example 1] } database "MySql" { folder "This is my folder" { [Folder 3] } frame "Foo" { [Frame 4] } } [Another Component] --> [Example 1] [Example 1] --> [Folder 3] [Folder 3] --> [Frame 4] @enduml ```

Learn More


src: ./pages/multiple-entries.md hide: false —


layout: center class: text-center —

Learn More

Documentations · GitHub · Showcases