Index of every page on this site: llms.txt
All skills
vite-hub avatar

/slidev

@8c10e89
by ViteHubvite-hub/drop9 stars
Run it yourself

Create and present web-based slidedecks for developers using Slidev with Markdown, Vue components, code highlighting, animations, and interactive features. Use when building technical presentations, conference talks, code walkthroughs, teaching materials, or developer decks.

Use this Skill: https://skilld.dev/gh/vite-hub/drop/slidev

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencescore-animations.md

≈670 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Animations

Click animations, motion effects, and slide transitions.

Click Animations

v-click Directive

<div v-click>Appears on click</div>
<div v-click>Appears on next click</div>

v-clicks Component

Animate list items:

<v-clicks>

- Item 1
- Item 2
- Item 3

</v-clicks>

With depth for nested lists:

<v-clicks depth="2">

- Parent 1
  - Child 1
  - Child 2
- Parent 2

</v-clicks>

Click Positioning

Relative positioning:

<div v-click>1st (default)</div>
<div v-click="+1">2nd</div>
<div v-click="-1">Same as previous</div>

Absolute positioning:

<div v-click="3">Appears on click 3</div>
<div v-click="[2,5]">Visible clicks 2-5</div>

v-after

Show with previous element:

<div v-click>Main element</div>
<div v-after>Appears with main element</div>

v-switch

Conditional rendering by click:

<v-switch>
  <template #1>First state</template>
  <template #2>Second state</template>
  <template #3>Third state</template>
</v-switch>

Custom Click Count

---
clicks: 10
---

Or starting from specific count:

---
clicksStart: 5
---

Motion Animations

Using @vueuse/motion:

<div
  v-motion
  :initial="{ x: -100, opacity: 0 }"
  :enter="{ x: 0, opacity: 1 }"
>
  Animated content
</div>

Click-based motion:

<div
  v-motion
  :initial="{ scale: 1 }"
  :click-1="{ scale: 1.5 }"
  :click-2="{ scale: 1 }"
>
  Scales on clicks
</div>

Slide Transitions

In headmatter (all slides):

---
transition: slide-left
---

Per-slide:

---
transition: fade
---

Built-in Transitions

  • fade / fade-out
  • slide-left / slide-right
  • slide-up / slide-down
  • view-transition (View Transitions API)

Directional Transitions

Different transitions for forward/backward:

---
transition: slide-left | slide-right
---

Custom Transitions

Define CSS classes:

.my-transition-enter-active,
.my-transition-leave-active {
  transition: all 0.5s ease;
}
.my-transition-enter-from,
.my-transition-leave-to {
  opacity: 0;
  transform: translateX(100px);
}

Use: transition: my-transition

CSS Classes

Animation targets get these classes:

  • .slidev-vclick-target - Animated element
  • .slidev-vclick-hidden - Hidden state
  • .slidev-vclick-current - Current click target
  • .slidev-vclick-prior - Previously shown

Default Animation CSS

.slidev-vclick-target {
  transition: opacity 100ms ease;
}
.slidev-vclick-hidden {
  opacity: 0;
  pointer-events: none;
}

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning10d3 checks · Risk SAFE
  • Gen Agent Trust Hub10d

    The skill provides a comprehensive guide for using Slidev, a developer-focused presentation tool, including its Model Context Protocol (MCP) server for AI agents. While it offers powerful features like live code execution and direct filesystem edits, these are standard functionalities for developers. However, the ability to read and modify files through the MCP server introduces an attack surface for indirect prompt injection.

  • Socket10d

    No alerts

  • Snyk10d

    Risk: MEDIUM · 1 issue

Signed by skilld at 8c10e89. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month

README badge

README badge for vite-hub/drop/slidev