Answer the question
In order to leave comments, you need to log in
Responsive website, how to make the script execute at different screen resolutions?
There is an adaptive site, how to make the script execute depending on the screen resolution.
jQuery('.block').addClass("hidden").viewportChecker({
classToAdd: 'visible animated fadeIn', offset: 50
});
Answer the question
In order to leave comments, you need to log in
I decided.
jQuery(document).ready(function(){
var w = screen.width;
if (w >= '1000') {
// выполняем на экранах больше 1000рх
} else {
if (w >= '600') {
// выполняем на экранах больше 600рх
} else {
if (w < '600') {
// выполняем на экранах меньше 1000рх
}
}
}
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question