Created
June 1, 2022 22:23
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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