Answers for "if media queries jquery"

0

if media query jquery

$(window).resize(function() {
  if ($(this).width() < 1024) {
	// your code
  } else {
    // your code
  }
});
Posted by: Guest on April-28-2020
0

if media queries jquery

if (window.matchMedia('(min-width: 600px)').matches) {
  /* La largeur minimum de l'affichage est 600 px inclus */
} else {
  /* L'affichage est inférieur à 600px de large */
}
Posted by: Guest on October-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language