Created
June 18, 2019 16:32
-
-
Save steveoh/21dbf46ab4566700d10e1b02397017b3 to your computer and use it in GitHub Desktop.
fade the bottom of an element
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
.shorten-sm { | |
height: 50px; | |
overflow: hidden; | |
position: relative; | |
} | |
.shorten-sm:before { | |
content: ''; | |
width: 100%; | |
height: 100%; | |
position: absolute; | |
background: linear-gradient(transparent 50px, #f9f9f9); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment