context :
i'm using jquery plugin stickyscroll when i'm in on specific page side bar comme along user scroll.
however need cancel when user goes small screen size.
i've tried override style plugin stronger classic !important
$(window).resize(function(){ if($(window).width() >= 991){ $('.index2').stickyscroll({ container: '.containerindex2' }); }else{ $('.sticy-active').style('top','0 !important'); } })
i've tough of using return
don't know how said should return specific function.
so there way either force style more !important or cancel function action ?
how about
if($(window).width() < 991){ $('.index2').stickyscroll('reset'); }
the author warning plugin not performing well
Comments
Post a Comment