Created
November 3, 2012 12:33
-
-
Save chestozo/4007242 to your computer and use it in GitHub Desktop.
Untitled
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
| * { | |
| font: 10pt arial; | |
| } | |
| .parent { | |
| width: 100px; | |
| overflow: hidden; | |
| position: relative; | |
| } | |
| .inner { | |
| white-space: nowrap; | |
| transition-properties: margin-left; | |
| transition-duration: 2s; | |
| margin-left: 0; | |
| } | |
| .inner:hover { | |
| margin-left: -140px; | |
| } | |
| .fade { | |
| background-image: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,255)); | |
| position: absolute; | |
| right: 0; | |
| width: 20px; | |
| height: 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 class="parent"> | |
| <div class="fade"></div> | |
| <div class="inner">Very very long string for very long people</div> | |
| </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-vertical","fontsize":"70","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment