WebSleeping
A screen saver component that activates after a period of user inactivity. Supports multiple visual themes including animated text, lightwave effects, and traditional Taiji Bagua.
Basic Usage
The screen saver activates after the specified idle time. Any user interaction (mouse move, click, key press, etc.) dismisses it.
Themes
Use screen-protect-theme to switch between visual themes: text, lightwave, and taijiibagua.
API
WebSleeping Attributes
| Name | Description | Type | Default |
|---|---|---|---|
| screen-protect-theme | visual theme of the screen saver | enum | 'text' |
| screen-protect-time | idle time in milliseconds before activation (0 to disable) | number | 300000 (5min) |
| manual | opacity of the screen saver overlay | boolean | false |
WebSleeping Exposes
| Name | Description | Type |
|---|---|---|
| reset | reset the inactivity timer and re-binds events | function |
| show | show the screen saver | function |