FlipcardTutorials

How to create a business card with flip

How to create a business card with flip

How to create a business card with flip

Before We Start

Every developer needs clean and modern elements to develop their websites, It contains pictures and a user interface element within a website. The most important one and the first section that the user sees when the user enters a website. How to create a business card with flip

So if you are a person who wishes to develop a website, you have to know how to create that properly.

How to create a business card with flip

We are here to solve your problem. In this article we discuss how to create these elements. Before we start please read the below articles which easier you to understand the process, if you are new to development.

Step 1 – Add HTML

It’s too easy and simple. Just copy and paste below code in your HTML editor between <body> </body> tag.

<div class="father">
  <div class="front">
    <header>
    </header>
    <img alt="avatar" 
         src="http://w3schoolweb.com/wp-content/uploads/2020/05/logo2.png">
    <h3>W3schoolweb</h3>
    <p>
      Lorem ipsum dolar folced quasetr lsmufz sfiod sab keiji faijoil mniols dsjfidsj lapenn folced quasetr lsmufz sfiod sab keiji faijoil mniols dsj ipsio uopliolos quartez to nopo
    </p>
    <span>Hover To see More Details</span>

  </div>
  <div class="back">
    <ul>
      <li><a href="#" class="fa fa-facebook"></a>Facebook:W3schoolweb</li>
      <li><a href="#" class="fa fa-twitter"></a>twitter:W3schoolweb</li>
      <li><a href="#" class="fa fa-google"></a>google+:W3schoolweb</li>
      <li><a href="#" class="fa fa-linkedin"></a>linkedin:W3schoolweb</li>
      <li><a href="#" class="fa fa-codepen"></a>codepen:W3schoolweb
</li>
      <li class="last-li"><a href="#">
                    Contact Me Now !
                    <span class="fa fa-angle-double-right"></span>
                    </a></li>
    </ul>


  </div>

</div>

Step 2 – Add CSS

We use some external CSS link to this code. No need to worry about this, copy and paste below code between <style></style> tag.

<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css">
</head>

Copy and paste below code in your HTML editor between <style></style> tag.

<style>
@import url("https://fonts.googleapis.com/css?family=Abel");
@keyframes example {
  10% {
    color: #aaa;
  }
  20% {
    color: #ccc;
  }
  30% {
    color: #ddd;
  }
  40% {
    color: #eee;
  }
  50% {
    color: #ddd;
  }
  60% {
    color: #ccc;
  }
  70% {
    color: #aaa;
  }
  80% {
    color: #999;
  }
  90% {
    color: #998;
  }
  100% {
    color: #888;
  }
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
body {
  perspective: 500px;
  background-color: #FF3CAC;
background-image: linear-gradient(225deg, #FF3CAC 0%, #784BA0 50%, #2B86C5 100%);

}
.father {
  width: 300px;
  height: 400px;
  margin: 50px auto;
  position: relative;
  color: #fff;
  transition: all 2s ease-in-out;
  transform-style: preserve-3d;
}

.father:hover {
  transform: rotateY(180deg);
}
.father > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  text-align: center;
  font-family: "Abel", sans-serif;
  border-radius: 8px;
}
.front {
  border: 2px solid #555;
  z-index: 2;
  background: #333;
  backface-visibility: hidden;
}
.front header {
  background: url(https://s19.postimg.org/53n91vjkj/1300x300.jpg);
  background-size: cover;
  opacity: 0.6;
  border-radius: 8px;
  height: 30%;
}
.front img {
  width: 120px;
  border: 2px solid #333;
  border-radius: 50%;
  position: relative;
  bottom: 50px;
}
.front h3 {
  position: relative;
  bottom: 50px;
  color: #fff;
  text-shadow: 1px 1px 3.5px #000;
  font-size: 140%;
  letter-spacing: 2px;
  font-family: "Inconsolata ", sans-serif;
  text-transform: uppercase;
}
.front p {
  position: relative;
  bottom: 50px;
  color: #ddd;
  text-transform: lowercase;
}

.front span {
  position: relative;
  bottom: 50px;
  color: #888;
  animation-name: example;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  text-transform: uppercase;
}
.back {
  border: 2px solid #555;
  z-index: 1;
  background: #333;
  transform: rotateY(180deg);
  backface-visibility: hidden;
}
.back ul {
  list-style: none;
  padding: 50px 0;
  text-transform: lowercase;
  letter-spacing: 2px;
  color: #aaa;
}
.back ul li {
  animation-name: example;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  text-transform: uppercase;
  padding: 5px 0;
}
li a.fa 
{
  font-size:18px;
}
.back ul li a {
  text-decoration:none;
  color: #aaa555;
  font-size: 20px;
  text-decoration: none;
}
.back ul li a span {
  opacity: 0;
  color: #aaa555;
  transition: all 0.4s ease;
  animation-name: example 2;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}
.back ul li a:hover span {
  opacity: 1;
}

.back ul li.last-li {
  margin-top: 50px;
}

</style>

At the end we will have something like this. You can change fonts, colors, backgrounds and all things that you want. Enjoy it.

Your Output

How to create a business card with flip

Your Output

How to create a business card with flip

Video Tutorial

Please watch this video to better understand this tutorial and don’t forget to subscribe to our channel.


Help others to find out about this article on Social Media sites. If you have any doubt or any problem, don’t hesitate to contact us. Thereafter we will be able to help you and also make sure you bookmark our site on your browser.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button