I'm looking to dynamically add and remove a css class based on a media query using Enquire.js but I could use some guidance on utilizing the functions properly.
Here's what I envision in pseudo code:
if (screens max-width > 480px){
#thumb.removeClass('col-xs-12').addClass('col-xs-6');
}
Here is the thumb
element we're starting with:
<div id ="thumb" class="col-xs-12 col-md-3">
<a href="#" class="thumbnail">
<img src="images/thumbnails/golden.jpg" class="img-rounded img-responsive" alt="...">
</a>
</div>
How can I achieve this functionality using Enquire.js assuming all necessary files have been included?