Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

on resize javascript

window.onresize = function() {
    if (window.innerHeight >= 820) { /* ... */ }
    if (window.innerWidth <= 1280) {  /* ... */ }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #resize #javascript
ADD COMMENT
Topic
Name
1+4 =