scroll-snap-* Properties.The following examples are overflow-scrolling divs. In the second, third and fourth examples, the blue cross represents the location of each container’s scroll snap destination.
The CSS for the above container is:
-webkit-scroll-snap-type: mandatory;
-webkit-scroll-snap-points-x: repeat(100%);
The CSS for the above container is:
-webkit-scroll-snap-type: mandatory;
The CSS for each of the container’s children is:
-webkit-scroll-snap-coordinate: 0% 0%;
The CSS for the above container is:
-webkit-scroll-snap-type: mandatory;
-webkit-scroll-snap-destination: 50% 50%;
The CSS for each of the container’s children is:
-webkit-scroll-snap-coordinate: 50% 50%;















The CSS for the above container is:
-webkit-scroll-snap-type: mandatory;
-webkit-scroll-snap-destination: 50% 50%;
The CSS for each of the container’s children is:
-webkit-scroll-snap-coordinate: 50% 50%;















The CSS for the above container is:
-webkit-scroll-snap-type: mandatory;
-webkit-scroll-snap-destination: 50% 50%;
-webkit-transform: rotate(30deg);
The CSS for each of the container’s children is:
-webkit-scroll-snap-coordinate: 50% 50%;
Images from NASA’s image of the day gallery.