Created
October 4, 2016 03:33
-
-
Save Calvein/fba2a728ba07399fb9c77439a38059e5 to your computer and use it in GitHub Desktop.
Shadow on scroll for list with a scrollbar
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
$scroll-shadow | |
background linear-gradient(white 30%, rgba(black, 0)), | |
linear-gradient(rgba(black, 0) 10px, white 70%) bottom, | |
radial-gradient(at top, rgba(black, 0.2), transparent 70%), | |
radial-gradient(at bottom, rgba(black, 0.2), transparent 70%) bottom | |
background-repeat no-repeat | |
background-size 100% 20px, 100% 20px, 100% 10px, 100% 10px | |
background-attachment local, local, scroll, scroll |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See http://codepen.io/Calvein/pen/QKOvPG