Last active
November 29, 2016 07:44
-
-
Save ajuliano/26a0d167cfb4beae5afdc11be4a5a5bc to your computer and use it in GitHub Desktop.
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
/* | |
* https://css-tricks.com/snippets/css/truncate-string-with-ellipsis/ | |
* | |
*/ | |
.u-truncate { | |
width: 250px; | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} | |
.u-aligner { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
} | |
.u-fadeIn { | |
opacity: 0; | |
animation: fadeIn .5s ease-in-out .2s forwards; | |
} | |
@keyframes fadeIn { | |
0% { | |
opacity: 0; | |
} | |
100% { | |
opacity: 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment