Created
August 28, 2014 15:40
-
-
Save SebastianView/65495df77d2850e10db4 to your computer and use it in GitHub Desktop.
Antes y después - Javier
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
| /** | |
| * Antes y después - Javier | |
| * Original version in http://demosthenes.info/blog/css | |
| */ | |
| .image-slider { | |
| position:relative; | |
| display: inline-block; | |
| line-height: 0; | |
| } | |
| /* Could use a pseudo-element, but they’re currently | |
| super buggy. See: http://dabblet.com/gist/ab432c3f6a8f672cd077 */ | |
| .image-slider > div { | |
| position: absolute; | |
| top: 0; bottom: 100; left: 0; | |
| width: 25px; | |
| max-width: 100%; | |
| overflow: hidden; | |
| resize: horizontal; | |
| } | |
| /* Cross-browser resizer styling */ | |
| .image-slider > div:before { | |
| content: ''; | |
| position: absolute; | |
| right00: 0; bottom: 0; | |
| width: 13px; height: 13px; | |
| padding: 5px; | |
| background: linear-gradient(-45deg, white 50%, transparent 0); | |
| background-clip: content-box; | |
| cursor: ew-resize; | |
| -webkit-filter: drop-shadow(0 0 2px black); | |
| filter: drop-shadow(0 0 2px black); | |
| } | |
| .image-slider img { | |
| user-select: none; | |
| max-width: 400px; | |
| } |
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="image-slider"> | |
| <div><img src="http://sebastiantrujillo.com/images/ja2.jpg" /></div> | |
| <img src="http://sebastiantrujillo.com/images/ja1.jpg" /> | |
| </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