<div class="img-container">
	<img src="http://blog.flywire.com/wp-content/uploads/2013/05/this-is-earth-everything-looks-normal-around-the-nyc-skyline-so-far-480x258.jpg" alt="">
	<div class="overlay">
		<h1>Some Text Here</h1>
		<hr>
		<a href="#" class="btn">Open&nbsp;<i class="fa fa-external-link-square" aria-hidden="true"></i></a>
	</div>
</div>
body{
	margin: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: linear-gradient(45deg, blue, red);
}
h1{
	font-size: 2.9rem;
	font-weight: 300;
	color: #f9f9f9;
	margin: 0;
	opacity: 0;
	transition: 1s;
}
hr{
	border: none;
	border-top: 1px solid #888;
}
.btn{
	outline: none;
	border: none;
	text-decoration: none;
	border-radius: 5px;
	margin: 0;
	padding: 0.5rem 1rem;
	background: #428bca;
	color: #f9f9f9;
	font-size: 1.3rem;
	transition: 0.3s transform cubic-bezier(.55,-0.87,.44,1.91);
	box-shadow: 0 0 10px rgba(0,0,0,0.4)
}
.btn:hover{
	transform: scale(1.2);
}
.img-container{
	max-width: 600px;
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	-webkit-box-shadow: 0px 2px 7px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 2px 7px 0px rgba(0,0,0,0.75);
	box-shadow: 0px 2px 7px 0px rgba(0,0,0,0.75); 
}
.img-container img{
	width: 100%;
}
/*====================================
Hover Effect
=====================================*/
.img-container .overlay{
	position: absolute;
	top: 0;
	left: 100%;
	z-index: 100;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.6);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	transition: 0.35s;
}
.img-container:hover .overlay{
	left: 0;
}
.img-container .overlay:hover h1{
	opacity: 1;
}
/*====================================
Hover Effect
=====================================*/
Run Pen

External CSS

  1. https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css

External JavaScript

This Pen doesn't use any external JavaScript resources.