fade the bottom of an element
.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