0.0.7 • Published 6 years ago
@lovata/overlay v0.0.7
Overlay helper package
Installation
npm install @lovata/overlayInitialization
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