slidev-component-spotlight

Key activable spotlight for Slidev
1,429 6
Install
npm install slidev-component-spotlight
Latest Version:1.1.0
Vue:3
License:MIT
Last Updated:Apr 2, 2024
Links: GitHub  ·  npm
Maintainer: tonai

slidev-component-spotlight

NPM version

Key activable spotlight for Slidev.

Spotlight demo

Hold Shift to activate the spotlight (can be customized).

Also works in presenter mode.

Installation

npm i slidev-component-spotlight

Configuration

Define this package into your slidev addons.

In your slides metadata (using frontmatter):

---
addons:
  - slidev-component-spotlight
---

Or in your package.json:

{
  "slidev": {
    "addons": [
      "slidev-component-spotlight"
    ]
  }
}

Usage

Create a ./global-top.vue file in your Slidev project and use the component:

<template>
  <SlidevSpotlight/>
</template>

Components

SlidevSpotlight

Component that displays the pager:

<SlidevSpotlight/>

Parameters:

  • activationKey (type: string, default: 'Shift'): The key to hold down to activate the spotlight
  • color (type: string, default: 'black'): CSS color of the spotlight shadow
  • opacity (type: number | string, default: 0.75): Opacity of the spotlight shadow
  • size (type: string, default: 100px): Size of the spotlight
  • transitionDuration (type: string, default: 200ms): CSS transition durations

Related Packages

spotlight-vue

Key activable spotlight for Vue.js (initially built for Slidev)

1,508 1
slidev-addon-asciinema

Slidev addon to embed asciinema casts to presentations.

2,022 13
slidev-component-progress

Progress component for Slidev

1,858 24
@olzhas-adiyatov/slidev-addon-asciinema

A fork of the slidev addon to embed asciinema casts to presentations. In this fo...

797 0
slidev-component-poll

Poll component for Slidev

2,322 55

Version History

Version Released Vue License
1.1.0 ^3.2.24 MIT
1.0.3 ^3.2.24 GPL
1.0.2 ^3.2.24 GPL
1.0.1 ^3.2.27 GPL
1.0.0 ^3.2.34 GPL