Skip to content
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
8 changes: 8 additions & 0 deletions jquery.multiscroll.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ html, body {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
overflow:hidden;
}
.ms-section.ms-table{
display: table;
Expand All @@ -33,6 +34,13 @@ html, body {
-o-transition: all 0.7s ease-out;
transition: all 0.7s ease-out;
}
.ms-fullscreen-content{
width:200%;
box-sizing:border-box;
}
.ms-fullscreen-right .ms-fullscreen-content{
margin-left:-100%;
}
#multiscroll-nav {
position: fixed;
z-index: 100;
Expand Down
7 changes: 6 additions & 1 deletion jquery.multiscroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@
$('.ms-left .ms-section, .ms-right .ms-section').each(function(){
var sectionIndex = $(this).index();

//clone left side to right if the right side is empty
if( $(this).hasClass('ms-fullscreen-right') ){
$(this).empty().append( $('.ms-left .ms-section')[sectionIndex].innerHTML );
}

if(options.paddingTop || options.paddingBottom){
$(this).css('padding', options.paddingTop + ' 0 ' + options.paddingBottom + ' 0');
}
Expand Down Expand Up @@ -863,4 +868,4 @@
};

};
})(jQuery, window, document, Math);
})(jQuery, window, document, Math);