@lovata/overlay
v0.0.7
Published
Package adds helper methods for work with overlay
Downloads
3
Readme
Overlay helper package
Installation
npm install @lovata/overlay
Initialization
import Overlay from '@lovata/overlay';
@import '@lovata/overlay/css/overlay';
CSS settings
Helper accepts some css custom properties
| Property | Default value | | --- | --- | | --overlay-opacity | 0.5 | | --overlay-background-color | #000000 | | --overlay-transition-duration | 0.5s | | --overlay-transition-timing-function | ease |
Methods
show()
Show overlay
hide()
Hide overlay