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