LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

CSS
body {
  background-color: #343642;
  font-family: Lato;
  font-weight: 700;
}

.o-title--primary {
  font-size: 3em;
  font-family: Lora;
  font-weight: 400;
  text-align: center;
  color: #979c9c;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  margin-top: -1.5em;
}

.c-links {
  margin: 0;
  padding: 0;
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.btn--corners {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 2px;
  font-size: 18px;
  text-align: center;
  vertical-align: top;
  font-weight: 400;
  border: 2px solid #962d3e;
}

.btn--corners:not(:last-child) {
  margin-right: 2px;
}

.btn--corners::before,
.btn--corners::after {
  content: "";
  position: absolute;
  background-color: #343642;
  z-index: 0;
  transition: 200ms ease-in;
  transform-origin: center center;
}

.c-links:target .btn--corners::before,
.c-links:target .btn--corners::after {
  background-color: rgba(0, 0, 0, 0.6);
  transition-duration: 600ms;
}

.btn--corners::before {
  width: calc(100% + 2px * 2 - 10px);
  height: calc(100% + 2px * 2);
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.btn--corners::after {
  height: calc(100% + 2px * 2 - 10px);
  width: calc(100% + 2px * 2);
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
}

.btn--corners:hover::before {
  width: 0;
}

.btn--corners:hover::after {
  height: 0;
}

.btn--corners a {
  position: relative;
  display: inline-block;
  color: #979c9c;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1em;
  font-size: 0.7em;
  padding: 5px 20px;
  margin: 0 2px;
  z-index: 1;
}

.btn--corners a::after {
  content: attr(data-number);
  display: block;
  font-family: Lora;
  font-style: italic;
}

.btn--primary {
  background: #962d3e;
  color: #979c9c;
  padding: 10px 40px;
  text-decoration: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  margin-top: 6em;
}
Host Instantly Drag and Drop Website Builder

 

Description

Links with corner borders and transition
Term
Mon, 11/27/2017 - 22:12

Related Codes

Pen ID
Pen ID
Pen ID