Edit the content of the media min-width with jquery

0
@media (min-width: 768px) {
.
.
.
}

I would like to know if there is any way to manipulate the content of the media by means of javascript or jquery.

    
asked by Aristeas05 20.07.2017 в 18:20
source

1 answer

2

Manipulate no, what you can use media queries in JavaScript through matchMedia to do something additional to what you have on the style sheet.

if (matchMedia('(min-width: 768px)').matches) {
  // hacer algo
}

Regarding the support, it has a pretty good one (see the link).

    
answered by 20.07.2017 / 18:31
source