Created
July 21, 2015 04:36
-
-
Save mayeenulislam/429baa9fd168cf712659 to your computer and use it in GitHub Desktop.
The following CSS will scroll overflowed items just like a slider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.item{ | |
overflow: auto; | |
scroll-snap-type: proximity; | |
scroll-snap-points-x: repeat(300px); | |
} | |
/* Source: https://twitter.com/supersole/status/615924334675296256 */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment