BlinkService documentation¶
provided in root
✓
A global blink pulse generator for synchronized blinking patterns across an entire application. Use to trigger any blinking by subscribing to pulse$
.
Attributes and Methods¶
Name | Type | Default | Description |
---|---|---|---|
isPaused() ¶ | () => boolean | Whether the blinking is paused or not. | |
pause() ¶ | () => void | Pause the blinking. | |
(readonly) pulse$ ¶ | Observable <boolean > | timer(0, 1400).pipe( map(count => count % 2 === 0), distinctUntilChanged(), takeUntil(this.off$), endWith(false), repeat({ delay: () => this.on$ }), share() ) | Blink pulse. Subscribe to it to toggle on CSS class when true, off CSS class when false . Do animations using CSS transitions |
resume() ¶ | () => void | Resume the blinking. |
Types Documentation¶
No types to document for items on this page.
Except where otherwise noted, content on this site is licensed under MIT License.