LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
   

Petrus Rex

Web Design & Development

CSS
@import url(https://fonts.googleapis.com/css?family=Lato);
/* CENTERING */
.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  /* bring your own prefixes */
  transform: translate(-50%, -50%);
}

/* /end */
body {
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/326221/bg.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

h3 {
  position: relative;
  left: 45%;
}

/* THE FRONT */
.front {
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/326221/bc-front.jpg);
  background-size: cover;
}

/* /end */
/* THE BACK */
.back {
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/326221/bc-back.jpg);
  background-size: cover;
}
.back h1, .back p, .back .font-a-icons {
  color: #000;
  font-family: "Lato";
  margin-left: 30%;
  line-height: 90%;
}
.back h1 {
  margin-top: 5%;
}
.back p {
  font-size: 16px;
  padding-bottom: 15px;
  width: 35%;
  border-bottom: 2px solid #000;
}
.back .bold {
  font-weight: bold;
}
.back .font-a-icons {
  margin-top: 25px;
}
.back .font-a-icons .icon-group {
  margin-top: 8px;
}
.back .font-a-icons span, .back .font-a-icons .link, .back .font-a-icons .fa, .back .font-a-icons a {
  color: #000;
}
.back .font-a-icons .fa {
  font-size: 18px;
}
.back .font-a-icons span, .back .font-a-icons a {
  font-size: 16px;
}
.back .font-a-icons a, .back .font-a-icons .website {
  text-decoration: none;
}
.back .font-a-icons a:hover, .back .font-a-icons .website:hover {
  color: #3f3f3f;
}
.back .icon-box {
  position: relative;
  color: #000;
  font-size: 24px;
  height: 45px;
  width: 45px;
  padding: 5px;
  top: 75px;
  left: 30%;
  display: inline-block;
  border: 2px solid #000;
  margin: 5px;
  text-align: center;
  cursor: pointer;
  -webkit-transition: all ease 0.5s;
  -moz-transition: all ease 0.5s;
  transition: all ease 0.5s;
}
.back .icon-box:hover {
  box-shadow: inset 0 50px 0 0 #000;
  color: #fff;
}

/* /end */
/* THE FLIP EFFECT */
/* entire container, keeps perspective */
.flip-container {
  perspective: 1000px;
}

/* flip the pane when hovered */
.flip-container:hover .flipper, .flip-container.hover .flipper {
  transform: rotateY(180deg);
  cursor: pointer;
}

.flip-container, .front, .back {
  height: 350px;
  width: 600px;
}

.flipper {
  transition: 0.5s;
  transform-style: preserve-3d;
  position: relative;
}

.front, .back {
  backface-visibility: hidden;
  position: absolute;
}

.front {
  z-index: 2;
  /* firefox 31 */
  transform: rotateY(0deg);
}

.back {
  background-color: #000;
}

.back {
  transform: rotateY(180deg);
}

.vertical.flip-container {
  position: relative;
}

.vertical .back {
  transform: rotateX(180deg);
}

.vertical.flip-container .flipper {
  transform-origin: 100% 400x;
}

.vertical.flip-container:hover .flipper {
  transform: rotateX(-180deg);
}

Description

My flippable online business card! Be sure to check out the social links on the back they have a neat fill effect too. If you follow me I do follow back. Enjoy! :D
Term
Wed, 12/27/2017 - 07:05

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv