Skip to content

Instantly share code, notes, and snippets.

Last active December 30, 2015 01:59
What would you like to do?
&:before {
display: none;
&:after {
display: none;
&:hover {
background-color: #eee;
&:before, &:after {
display: block;
Copy link

Hi Julie,

Would you happen to know if :before can be used to create a fade out edge for a css gradient?
I am currently using this:
background: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ffffff));

But need to fade out both edges (top right and top left).

Your advise will be appreciated,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment