xobotyi / viewport.jquery

viewport.jquery - simple but handy jQuery plugin adding methods and CSS selectors to check if element is in certain viewport

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Можно ли как-то прибавить пиксели к in-viewport

cimes opened this issue · comments

commented

Подскажите, есть задача скролить по секциям, но сверху свисает навигация в 88 пикселей, можно как то сразу прибавить 88px

var container = $(".container-scroll:in-viewport+88"),
id = container.attr('id'),
scrollNext = container.next();

Можно сделать указанием трешолда, но он увеличивает область во все стороны и указывается как :in-viewport(88)