LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
    

Border Hover Effect

CSS
*{
  margin:0;
  padding:0;
}

body{
  background-color:rgba(0,0,0,1);}

.wrapper {
  margin: 0 auto;
  max-width: 100%;
  height: 100vh;
  padding: 50px;  
  text-align: left;
}

p.title{
  font: 40px 'Roboto', sans-serif;
  color: rgba(255,255,255,1);
  margin-bottom: 50px;
}

.box{
  width: 300px;
  height: 460px;
  position: relative;
  background: rgba(255,255,255,1);
  display: inline-block;
  margin: 0 10px;
  cursor: pointer;
  color: #2c3e50;
  box-shadow: inset 0 0 0 20px black;
  transition: background 0.2s 0.3s;
  transition-delay: 0.2s;
}

.box:hover{background: rgba(255,255,255,0);
  transition-delay: 0s;}

.box svg{
  position: absolute;
  top: 0;
  left: 0;
}

.box svg line {
	stroke-width: 10;
	stroke: #ecf0f1;
	fill: none;
	transition: all .8s ease-in-out;
}

.box:hover svg line {
	transition-delay: 0.1s;
}

.box svg line.top,
.box svg line.bottom {
	stroke-dasharray: 330 240; 
}

.box svg line.left,
.box svg line.right {
	stroke-dasharray: 490 400;
}

.box:hover svg line.top {
	-webkit-transform: translateX(-600px);
	transform: translateX(-600px);
}

.box:hover svg line.bottom {
	-webkit-transform: translateX(600px);
	transform: translateX(600px);
}

.box:hover svg line.left {
	-webkit-transform: translateY(920px);
	transform: translateY(920px);
}


.box:hover svg line.right {
	-webkit-transform: translateY(-920px);
  transform: translateY(-920px);}
Term
Sat, 04/14/2018 - 20:46

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv