123

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="bgtint"></div>
<section class="bussinesscard">
		<div class="flip">
			<div class="front">				
				<div class="top">				
					<div class="logo"><span class="fat">E</span><span class="skinny">K</span></div>				
				</div>
				<div class="nametroduction">
					<div class="name">Eduard Kosicky</div>
					<div class="introduction">A Front End Developer</div>
				</div>	
				<div class="contact">						
					<div class="website">
						<span class="ion-earth"></span>
						<a href="#">www.eduardkosicky.me</a>
					</div>
					<div class="twitter">
						<span class="ion-social-twitter"></span>
						<a href="#">@eduardkosicky</a> 
					</div>												
					<div class="phone ">
						<span class="ion-ios7-telephone"></span> 
						<a href="#">0118 999 7253</a> 
					</div>
					<div class="email ">
						<span class="ion-paper-airplane"></span>
						<a href="#">eduard@kosicky.me</a>
					</div>
				</div>						
			</div>
			<div class="back"></div> <!--FIXES FONT RENDERING -->
		</div>
	</section>
	<section class="tooltip">
		<p>
			Hover over the card to see the back.
		</p>
	</section>
            
          
!
            
              @import "compass/css3";

@import url(https://fonts.googleapis.com/css?family=Old+Standard+TT:400,400italic,700);
@import url(https://fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,700,800,900);
@import url(https://code.ionicframework.com/ionicons/1.5.2/css/ionicons.min.css);
$maincolor: #6acd79;
$secondarycolor: #2a2b39;

::selection {color:#fff;background:$secondarycolor;}
::-moz-selection {color:#fff;background:$secondarycolor;}
body,html{
	font-family: 'Raleway', sans-serif;
	background: url(https://unsplash.imgix.net/uploads/141310026617203b5980d/c86b8baa?q=75&fm=jpg&s=be8d1e8254844f53e56583bd49cf5e77);	
	-webkit-background-size: cover;
	-moz-background-size: cover;
	background-size: cover;	
	margin:0;
	padding:0;
	width:100%;
	height:100%;
	overflow:hidden;
	z-index:9;
}
.bgtint{
  position: absolute;
  height: 100%;
  width: 100%;
  background: rgba($secondarycolor, .7);
}
p{
	padding:0;
	margin:0;
	display: inline-block	
}
a{
	color: $secondarycolor;
	text-decoration: none;
	@include transition(all .2s ease-in-out);
	&:hover{
		color: $maincolor;
	}
}
.bussinesscard{
	height:320px;
	width:428px;	
	overflow: hidden;
	box-shadow: 0px 0px 43px -10px black;	
	position: absolute;
	left: 50%;
	top: 50%;	
	@include translate(-50%,-50%);	
	.flip{
		@include transition(all .5s ease);		
	}
	.front{
		z-index: 11;
		width: 100%;
		position: absolute;
		height: 100%;
		background: #fff;	
		box-shadow: 0px 0px 33px -1px rgba(0, 0, 0, 0.45);	
		@include scale(1);
		@include transition(all .6s ease);
		.top{
			height: 50%;			
			background: $secondarycolor;
			&:after{
				position: absolute;
				content: '';
				pointer-events: none;				
			}			
			&:after{
				left: 50%;
				width: 2em;
				height: 2em;
				@include transform(translateX(-50%) rotate(45deg));							
				bottom: 9em;
				z-index: 10;
				background: inherit;
			}							
			.logo{
				display: inline-block;			
				background: $maincolor;
				color: #fff;
				z-index: 11;
				padding: .16em;
				border: 8px solid #fff;
				position: relative;
				pointer-events: none;
				@include translateX(-50%);
				left: 50%;
				margin-top: .4em;
				font-size: 4em;				
				.fat{
					font-weight: 800;
				}
				.skinny{
					font-weight: 100;
				}
			}		
		}
		.nametroduction{
			margin-top: 2.4em;
			@include translateY(0);
			z-index: 8;
		}
		.name{			
			color: $secondarycolor;
			font-weight: 400;
			font-size: 3.2em;
			text-align: center;
			position: relative;
			margin-bottom: .35em;
			&:after{
				content: '';
				position: absolute;
				top: 1.3em;
				width: 20%;
				left: 40%;
				right: 40%;
				height: 1px;
				background: $secondarycolor;
			}
		}
		.introduction{
			text-align: center;
			color: $secondarycolor;
			font-family: 'Old Standard TT', serif;
			font-style: italic; 
		}
		.contact{
				color: $secondarycolor;				
				margin-left: 1.7em;
				font-weight: 300;
				font-size: 1.6em;
				@include translateY(400%);
				span{
					color: #2D3244;
					font-size: 1.7em;
					width: 1.3em;
					display: inline-block;
				}		
				a{
					position: relative;
					bottom: .24em;
				}		
			}
	}
	.back{		
		width: 100%;
		height: 100%;
		background: #fff;
		backface-visibility: hidden;
		position: absolute;	
	}	
}

.tooltip{
	position: absolute;
	left: 1em;
	bottom: 1em;		
	color:#fff;
	font-weight: 300;
	padding: .4em;
	background: $maincolor;
}
/* HOVER ANIMATIONS */

.front .top .logo, .front .top, .front .top:after, .front .nametroduction, .front .contact{
	@include transition(.7s all ease-in-out);
}
.flip:hover .front .top .logo{
	margin-top: .28em;
	font-size: 1.3em;
	border: 3px solid #fff;
	margin-left: .15em;
	@include translateX(0);
	left:0;
}
.flip:hover .front .top{
	height: 15%;	
	&:after{
		width: 1.5em;
		height: 1.5em;
		bottom: 16.3em;
	}
}
.flip:hover .front .nametroduction{
	@include translateY(400%);	
}
.flip:hover .front .contact{
	@include translateY(-52%);	
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console