JSFiddle - React, Tailwind, and code Playground

by rwachtler

HTML

<body>
    <div class="thumbnailouterwrap">
	<a href="http://jsfiddle.net" class="anchorthumb">
		<div class="thumbnailinnerwrap">
			<div class="imgthumbnail">
				<div class="thumbtext">
					<h3>Title</h3>
					<hr/>
					<p>Description</p>
				</div>
			</div>
		</div>
	</a>
	</div>
    
</body>

SCSS

body{
    font-family: Arial, sans-serif;
}
a, a:hover, a:focus{
    text-decoration: none;
    color: #fff;
}
.thumbnailouterwrap{
    width: 250px;
    height: 250px;
}
.imgthumbnail{
    text-align: center;
    width: 100%;
    height: 100%;
    background-color: transparent;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 1;
    position: relative;
    
}
.imgthumbnail:after{
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("http://doc.jsfiddle.net/_downloads/jsfiddle-logo.png");
    background-size: cover;
    background-position: center;
    transition: 500ms all ease-in-out;
    
}

.thumbnailinnerwrap{
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #1d1d1d;
}
.thumbtext{
    opacity: 0;
    transition: 500ms all ease-in-out;
    transform: scale(1, 1);
    z-index: 1;
}
.imgthumbnail hr{
    width: 0%;
    border-top: solid 1px #fff;
    transition: 800ms all ease-in-out;
}

.imgthumbnail:hover .thumbtext, .thumbtext:hover{
    opacity: 1;
}
.imgthumbnail:hover hr, hr:hover{
    width: 100%;
}
.imgthumbnail:hover:after{
    transform: scale(1.2, 1.2);
    opacity: 0.7;
    filter: blur(2px);
}