Last active
December 29, 2016 19:05
-
-
Save jsayol/400ee259d450a00c0ac39e8f4e96ca54 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const show$ = Observable.timer(0, 1000); | |
const hide$ = Observable.timer(750, 1000); | |
const blinker$ = Observable.merge( | |
show$.mapTo('visible'), | |
hide$.mapTo('hidden') | |
); | |
blinker$.subscribe(value => element.style['visibility'] = value); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment