LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

CSS
@import url(https://fonts.googleapis.com/css?family=Lato:400,700);
body {
  background-color: #202020;
  font-family: Lato;
}

.boxes {
  text-align: center;
  position: relative;
  width: 1260px;
  margin: 0 auto;
}
.boxes .box {
  display: block;
  float: left;
  position: relative;
  width: 400px;
  height: 350px;
  text-align: center;
  border-collapse: collapse;
  text-decoration: none;
  color: #fff;
  margin: 0 10px;
}
.boxes .box h3 {
  transition: all 0.5s;
  padding-top: 50px;
  padding-bottom: 60px;
  margin: 0;
  font-size: 2em;
  text-transform: uppercase;
}
.boxes .box i {
  transition: all 0.4s;
  font-size: 4em;
}
.boxes .box p {
  transition: all 0.5s;
  margin-top: 70px;
}
.boxes .box:before {
  transition: all 0.4s;
  position: absolute;
  content: "";
  width: 100%;
  height: 50%;
  left: 50%;
  margin-left: -50%;
  top: 25%;
  border-color: rgba(200, 200, 200, 0);
  border-style: solid;
  border-width: 0 1px;
}
.boxes .box:after {
  transition: all 0.4s;
  position: absolute;
  content: "";
  width: 50%;
  height: 100%;
  left: 50%;
  margin-left: -25%;
  top: 0;
  border-color: rgba(200, 200, 200, 0);
  border-style: solid;
  border-width: 1px 0;
}
.boxes .box:hover {
  color: #4099FF;
}
.boxes .box:hover h3 {
  padding-top: 80px;
  padding-bottom: 30px;
}
.boxes .box:hover p {
  margin-top: 30px;
}
.boxes .box:hover:after {
  width: 402px;
  margin-left: -50%;
  border-color: #5a5a5a;
}
.boxes .box:hover:before {
  height: 352px;
  top: 0%;
  border-color: #5a5a5a;
}
Host Instantly Drag and Drop Website Builder

 

Description

Border transitions using CSS
Term
Mon, 11/27/2017 - 22:08

Related Codes

Pen ID
Pen ID
Pen ID