Created
May 27, 2013 19:21
-
-
Save gcyrillus/5658669 to your computer and use it in GitHub Desktop.
animation marquee like: animation + attr data-
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
/* animation marquee like: animation + attr data- */ | |
div {text-align:center;} | |
p {display:inline-block;margin:3em auto;border:double;background:orange;padding:5px 0; | |
position:relative;overflow:hidden;} | |
strong {display:block;animation:linear marqueelike 12s infinite ;margin-left:-100%;padding:0 5px;text-align:left;} | |
strong:after {content:attr(data-text);position:absolute;white-space:nowrap;padding-left:10px;color:#555;} | |
@keyframes marqueelike { | |
0%, 100% {margin-left:0;} | |
99.99% {margin-left:-100%;} | |
} |
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> | |
<p> | |
<strong data-text=" L'ECAM vous souhaite une bonne saison 2013 - Le calendrier 2013 de l'ECAM est en ligne"> | |
L'ECAM vous souhaite une bonne saison 2013 - Le calendrier 2013 de l'ECAM est en ligne | |
</strong> | |
</p> | |
</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
// alert('Hello world!'); |
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