Created
June 27, 2012 22:19
-
-
Save jacobrask/3007233 to your computer and use it in GitHub Desktop.
Fadeout and marquee
This file contains hidden or 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
/* | |
Fadeout and marquee | |
*/ | |
.fadeout-text { | |
overflow: hidden; | |
width: 130px; | |
/* Fallback solution for browsers that | |
doesn't support the next set of rules. */ | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
} | |
@media only screen { | |
.fadeout-text { | |
text-overflow: clip; | |
position: relative; | |
} | |
.fadeout-text:hover span { | |
display: inline-block; | |
overflow-x: -webkit-marquee; | |
} | |
.fadeout-text::after { | |
content: ""; | |
position: absolute; | |
top: 0; bottom: 0; right: 0; | |
width: 20px; | |
background-image: linear-gradient(left,rgba(255, 255, 255, 0),white); | |
} |
This file contains hidden or 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
<div class="fadeout-text"><span>Stockholm, Uppland, Sweden</span></div> |
This file contains hidden or 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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment