Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just add few tweaks :D #292

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Demo/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@
$(".main").onepage_scroll({
sectionContainer: "section",
responsiveFallback: 600,
loop: true
loop: true,
hrefReturn:true,
});
});

Expand Down
2 changes: 2 additions & 0 deletions Demo/jquery.onepage-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
afterMove: null,
loop: true,
responsiveFallback: false,
hrefReturn: true,
direction : 'vertical'
};

Expand Down Expand Up @@ -367,6 +368,7 @@
$(".onepage-pagination li a").click(function (){
var page_index = $(this).data("index");
el.moveTo(page_index);
return settings.hrefReturn;
});
}

Expand Down
3 changes: 3 additions & 0 deletions Demo/onepage-scroll.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ body, .onepage-wrapper, html {
list-style: none;
margin: 0;
padding: 0;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.onepage-pagination li {
padding: 0;
Expand Down
3 changes: 3 additions & 0 deletions onepage-scroll.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ body, .onepage-wrapper, html {
list-style: none;
margin: 0;
padding: 0;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.onepage-pagination li {
padding: 0;
Expand Down