Hi,
I am just wondering why you use matchMedia instead of all these complex calculations? media queries in JavaScript too matchMedia
Thanks Stefan
First time heard about the matchMedia. Thanks for the input.
Just wondering, is there any way to react if screen resized?
Of course, it has an event receiver for onChange.
developer.mozilla.org/en-US/docs/W...
that's cool!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi,
I am just wondering why you use matchMedia instead of all these complex calculations? media queries in JavaScript too matchMedia
Thanks
Stefan
First time heard about the matchMedia. Thanks for the input.
Just wondering, is there any way to react if screen resized?
Of course, it has an event receiver for onChange.
developer.mozilla.org/en-US/docs/W...
that's cool!