Skip to content

Instantly share code, notes, and snippets.

@edubskiy
Created June 1, 2022 22:23
Show Gist options
  • Save edubskiy/d197442b114bd23ade731edd4a8f679e to your computer and use it in GitHub Desktop.
Save edubskiy/d197442b114bd23ade731edd4a8f679e to your computer and use it in GitHub Desktop.
Fading out text on overflow with css if the text is bigger than allowed
.row:before {
content:'';
width:100%;
height:100%;
position:absolute;
left:0;
top:0;
background:linear-gradient(transparent 150px, white);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment