Skip to content

Instantly share code, notes, and snippets.

@mayognaise
Created July 13, 2023 23:56
Show Gist options
  • Save mayognaise/9a202a33bf80723833f4cba19dca91a9 to your computer and use it in GitHub Desktop.
Save mayognaise/9a202a33bf80723833f4cba19dca91a9 to your computer and use it in GitHub Desktop.
Mask gradient css
.mask-gradient-bottom {
mask-image: linear-gradient(to bottom, black 2%, transparent 98%);
}
.mask-gradient-top {
mask-image: linear-gradient(to top, black 2%, transparent 98%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment