1.1.0 • Published 2 years ago
slidev-component-spotlight v1.1.0
slidev-component-spotlight
Key activable spotlight for Slidev.

Hold Shift to activate the spotlight (can be customized).
Also works in presenter mode.
Installation
npm i slidev-component-spotlightConfiguration
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 spotlightcolor(type:string, default:'black'): CSS color of the spotlight shadowopacity(type:number | string, default:0.75): Opacity of the spotlight shadowsize(type:string, default:100px): Size of the spotlighttransitionDuration(type:string, default:200ms): CSS transition durations