Last active
December 10, 2015 02:29
-
-
Save OmShiv/4368128 to your computer and use it in GitHub Desktop.
Stereoscopic 3D image
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
<h1>Simple 3D effect</h1> | |
<div class="flip"></div> |
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
.flip{ | |
background:url(http://upload.wikimedia.org/wikipedia/commons/thumb/4/4e/Asiatic_hybrid_lilium_stereogram_flipped.jpg/800px-Asiatic_hybrid_lilium_stereogram_flipped.jpg); | |
animation:flip 250ms steps(1, end) infinite; | |
width:400px; | |
height:453px; | |
} | |
@keyframes flip{ | |
0%{ | |
background-position:0 0; | |
} | |
50%{ | |
background-position:400px 0; | |
} | |
} | |
body{ | |
font-family:Helvetica, sans-serif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment