Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

on resize jquery

$(window).on('resize', function(){
    var win = $(this); //this = window
    if (win.height() >= 820) { /* ... */ }
    if (win.width() >= 1280) { /* ... */ }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #resize #jquery
ADD COMMENT
Topic
Name
4+2 =