I'm trying to add different values to the jquery based on below in relation to the media query.
HTML
<div id="content">
</div>
JS
$("html,body").animate({scrollTop: 360}, 1000);
Desired Effect, something along the lines of this
@media handheld, only screen and (max-width: 1024px) {
$("html,body").animate({scrollTop: 660}, 1000);
}
@media handheld, only screen and (max-width: 768px) {
$("html,body").animate({scrollTop: 260}, 1000);
}
What would be the most ideal way of doing this?