Skip to content

Instantly share code, notes, and snippets.

@dantz
Created December 21, 2012 19:51
Show Gist options
  • Select an option

  • Save dantz/4355285 to your computer and use it in GitHub Desktop.

Select an option

Save dantz/4355285 to your computer and use it in GitHub Desktop.
Untitled
body {
background: #eee;
}
.wrapper {
width: 600px;
height: 600px;
margin: 0 auto 0 auto;
}
.container {
width: 5.5cm;
height: 8.5cm;
position: relative;
perspective: 500;
}
#card {
width: 5.5cm;
height: 8.5cm;
position: absolute;
transform-style: preserve-3d;
transition: transform 1s;
transform-origin: center center;
}
#card .front, #card .back {
display: block;
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
padding: 1em;
box-sizing: border-box;
background-color: #fff;
}
#card .front {
background-color: #00aeef
}
#card .back {
transform: rotateY(180deg);
box-shadow: 0px 0px 4px rgba(0,0,0,0.2);
}
#card {
transform: rotateY(200deg);
transition-delay: 0.2s;
}
.bubble {
background-color: #ccc;
border-radius: 50%;
width: 60px;
height: 60px;
line-height: 60px;
font-size: 8px;
text-align: center;
display: block;
}
.bubble:hover {
background-color: #f00;
}
<div class="wrapper">
<section class="container">
<div id="card">
<div class="front">1</div>
<div class="back">
<div id="hcard-Andreas-Dantz" class="vcard">
<span class="fn">Andreas Dantz</span>
<div class="org">Vortrieb</div>
<div class="adr">
<div class="street-address">Wachmannstraße 69</div>
<span class="postal-code">28209</span>
<span class="locality">Bremen</span>
<span class="country-name">Deutschland</span>
</div>
<a class="email" href="mailto:ad@vortrieb.net">ad@vortrieb.net</a>
<a href="+49 421 841 37 814" class="tel">+49 (0) 421 / 841 37 814</a>
</div>
</div>
</div>
</section>
<a href="" class="bubble">Visitenkarte herunterladen</a>
<a href="" class="bubble">Twitter</a>
<a href="" class="bubble">Dribbble</a>
<a href="" class="bubble">GitHub</a>
</div>
// alert('Hello world!');
{"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