Created
July 16, 2013 20:41
-
-
Save luckyjajj/6012467 to your computer and use it in GitHub Desktop.
A CodePen by Lakhveer Jajj. CSS Card Flip - CSS card flip for a smart way to showcase contact picture and information.
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
<div class="container indiv"> | |
<div class="card"> | |
<div class="face front"> | |
<img src="http://images2.wikia.nocookie.net/__cb20070802000213/memoryalpha/en/images/2/27/Spock,_2267.jpg" alt=""> | |
</div> | |
<div class="face back"> | |
<div id="text"> | |
<ul> | |
<li><img src="http://katcalvin.com/wp-content/uploads/2012/11/grey-twitter-icon-128.png"/>@LuckyJajj</li> | |
<li>l.jajj@sunviewlabs.com </li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
</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
*{ | |
color: white; | |
padding: 0; | |
} | |
.card { | |
width: 190px; | |
height: 190px; | |
font-size: 18px; | |
-webkit-transition: 0.5s; | |
-webkit-transform-style: preserve-3d; | |
} | |
.container:hover .card { | |
-webkit-transform: rotateY(180deg); | |
} | |
.face { | |
position: absolute; | |
-webkit-backface-visibility: hidden; | |
} | |
.indiv .front img{ | |
width: 190px; | |
height: 190px; | |
-webkit-border-radius: 150px; | |
-moz-border-radius: 150px; | |
border-radius: 150px; | |
-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, .8); | |
-moz-box-shadow: 0 0 8px rgba(0, 0, 0, .8); | |
box-shadow: 0 0 8px rgba(0, 0, 0, .8); | |
} | |
.indiv .back{ | |
overflow: hidden; | |
width: 190px; | |
height: 190px; | |
-webkit-border-radius: 150px; | |
-moz-border-radius: 150px; | |
border-radius: 150px; | |
background: rgba(0,0,0,0.7); | |
-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, .8); | |
-moz-box-shadow: 0 0 8px rgba(0, 0, 0, .8); | |
box-shadow: 0 0 8px rgba(0, 0, 0, .8); | |
text-align: center; | |
-webkit-transform: rotateY(180deg); | |
} | |
#text{ | |
margin-top: 50px; | |
} | |
#text img{ | |
vertical-align: middle; | |
height:26px; | |
padding-right: 5px; | |
} | |
#text ul{ | |
list-style: none; | |
text-align: center; | |
} | |
#text li{ | |
height: 26px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment