Closed moecantplay closed 6 years ago
alright, nevermind.. I've found the work around
if ($(window).width() > 992) {
$('#sticky-div').sticky({
topSpacing:0,
center: true,
responsiveWidth: true
});
} else {
$('#sticky-div').unstick();
}
$(window).resize(function() {
if ($(window).width() > 992) {
$('#sticky-div').sticky({
topSpacing:0,
center: true,
responsiveWidth: true
});
} else {
$('#sticky-div').unstick();
}
});
I'm wondering whether or not this plugin can work responsively.. I need it to stick only on desktop, not on mobile.. mind guiding me through ?