Demo of Overthrow-Sidescroller The Sidescroller extension for Overthrow

Fixed-Width Items

The fixed-width option adjusts the scripting logic to handle fixed-width sidescroller items without impacting any of the other extensions’ functionality.

Snapping is added to a Sidescroller by specifying fixedItemWidth in the intialization options, along with a static width set on the items via CSS.

.overthrow.sidescroll li {
	width: 200px;
}
overthrow.sidescroller( document.querySelectorAll( ".overthrow-enabled .sidescroll-nextprev" ), { fixedItemWidth: true } );