Skip to content

Instantly share code, notes, and snippets.

@dy
Created January 18, 2016 00:09
Show Gist options
  • Save dy/f99bcec86f5a5901896a to your computer and use it in GitHub Desktop.
Save dy/f99bcec86f5a5901896a to your computer and use it in GitHub Desktop.
CSS gauss gradient
.grad {
background: linear-gradient(
to right,
rgba(0,0,0,0) 0%,
rgba(0,0,0,0.01) 8.333%,
rgba(0,0,0,0.05) 16.666%,
rgba(0,0,0,0.13) 25%,
rgba(0,0,0,0.32) 33.333%,
rgba(0,0,0,0.62) 41.666%,
rgba(0,0,0,1) 50%,
rgba(0,0,0,0.62) 58.333%,
rgba(0,0,0,0.32) 66.666%,
rgba(0,0,0,0.13) 75%,
rgba(0,0,0,0.05) 83.333%,
rgba(0,0,0,0.01) 91.666%,
rgba(0,0,0,0) 100%
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment