.box {
	width: 340px;
	height:300px;
	position: relative;
	background: rgba(255,255,255,1);
	display: inline-block;
    cursor: pointer;
	color: #dbdbdb;
	-webkit-transition: background 0.4s 0.5s;
	transition: background 0.4s 0.5s;
}

.box:hover {
	background: rgba(255,255,255,0);
	-webkit-transition-delay: 0s;
	transition-delay: 0s;
}








.box svg {width: 340px;height:300px;position: absolute;top: 0;left: 0;}

.box svg line {
	stroke-width: 3;
	stroke: #ecf0f1;
	fill: none;
	-webkit-transition: all .8s ease-in-out;
	transition: all .8s ease-in-out;
}

.box:hover svg line {
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
}

.box svg line.top,
.box svg line.bottom{stroke-dasharray:340 260; } 

.box svg line.left,
.box svg line.right {stroke-dasharray:340 0;}

.box:hover svg line.top {-webkit-transform: translateX(-640px);transform: translateX(-640px);}

.box:hover svg line.bottom {-webkit-transform: translateX(640px);transform: translateX(640px);}

.box:hover svg line.left {-webkit-transform: translateY(600px);transform: translateY(600px);}

.box:hover svg line.right {-webkit-transform: translateY(-600px);transform: translateY(-600px);}

/* Alternatives */

/* Color */

/* Frame */
 .box {
	background: rgba(0,0,0,0);
	color: #fff;
	box-shadow: none;
	-webkit-transition: background 0.3s;
	transition: background 0.3s;
}

 

 

.box svg line {
	-webkit-transition: all .5s;
	transition: all .5s;
}

 .box:hover svg line {
	stroke-width: 10;
	-webkit-transition-delay: 0s;
	transition-delay: 0s;
}

 .box:hover svg line.top {
	-webkit-transform: translateX(-300px);
	transform: translateX(-300px);
}

.box:hover svg line.bottom {
	-webkit-transform: translateX(300px);
	transform: translateX(300px);
}

 .box:hover svg line.left {
	-webkit-transform: translateY(460px);
	transform: translateY(460px);
}

.box:hover svg line.right {
	-webkit-transform: translateY(-460px);
	transform: translateY(-460px);
}


.box span{width:300px;height:256px; position:absolute; left:20px; top:22px; z-index:99; display:block;}








