I am working on this website (HTML5, CSS3, and JS) it has 2 divs (header and footer) which have CSS position: fixed
, and there is a center div which has position:absolute
and contains the content.
What I would like to do is implement scroll snapping within this center div which has absolute positioning. But for some reason I am unable to do this. This is the jquery plug-in I am trying to use: https://github.com/peachananr/onepage-scroll
Can you guys please help me?
Here is a JSFiddle with the set up im trying: https://jsfiddle.net/icyyd/dswsg96d/