Found solution. Anchor is working!!
Opened this issue · 3 comments
In line 366 add your custom class="" For example : (anchor)
IN [ jquery.onepage-scroll.js ]
if(settings.pagination == true) {
$(".onepage-pagination li a, .anchor").click(function (){
var page_index = $(this).data("index");
el.moveTo(page_index);
});
}
**IN html add data-index="Number" href="id & number" also your class **
<a href="#1" class="anchor" data-index="1">To section 2</a>
Thank you : )
Привет,это куда надо добавить ?03.09.2018, 12:43, "Nursultan" notifications@github.com:In line 366 add your custom class="" For example : (anchor) IN [ jquery.onepage-scroll.js ] if(settings.pagination == true) {
$(".onepage-pagination li a, .anchor").click(function (){ var page_index = $ (this).data("index"); el.moveTo(page_index); }); } **IN html add data-index="Number" href="id & number" also your class ** To section 2 —You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.
Привет в jquery.onepage-scroll.js 366 строку добавляешь свой класс например "link"
А в html пишешь так <a href="#1" class="anchor link" data-index="1">To section 2</a>
то есть добавляешь тот класс link и указываешь id куда делать сколл