Available for React
A root viewport scroll wrapper for CSS scroll snapping, with integrated navigation and reusable UI components. Native momentum and snap points, cross-platform tested. Open source under the MIT license.
See it for yourself
Render props for current view, totals, and scroll percentages.
Drive animations from content scroll percentage.
Programmatic scrollToView pagination controls.
AbsoluteView for elements between snap sections.
Add or remove FullView slides at runtime.
Switch snap layout on and off with the enabled prop.
Unlike many JavaScript scroll plugins that recreate scrolling, this wrapper uses native CSS scroll snapping so touch gestures stay smooth and performant. It detects browser support and device capabilities so you deliver the best native experience without fighting snap points.
Cross-platform tested. Minimum versions from the package README.
Install from npm, then wrap your views with FullViewSnap and Controller.
npm install full-view-snap-react
import { FullViewSnap, Controller, FullView } from "full-view-snap-react";
<FullViewSnap
hideScrollBars
render={() => (
<Controller>
<FullView><h1>View 1</h1></FullView>
<FullView><h1>View 2</h1></FullView>
</Controller>
)}
/>