I want to check the browser width, and if it’s more than 850, to fade in a div.
Then whenever the browser is resized, I want to fade out that div if the browser width is less than 850, and fade it in again if the browser width is more than 850.
Thank you in advance for helping out with this!
Dimitri Vorontzov
As far as I know, you can use the
$(window).width()(doc) to get the browser’s width. Use theresizeevent to handle the changes in browser size. (doc)