slidev-component-spotlight
v1.1.0
Published
Key activable spotlight for Slidev
Downloads
9
Readme
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-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 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