- Get link
- X
- Other Apps
Featured Post
- Get link
- X
- Other Apps
Source Code:
1) Index.html
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css">
</head>
<body>
<div class="card middle">
<div class="front">
<img src="image.jpg" alt="bhumikphotography">
</div>
<div class="back">
<div class="back-content middle">
<h2>FOLLOW US</h2>
<span></span>
<div class="sm">
<a href="https://www.facebook.com/bhumikphotography/" target="_blank"><i class="fab fa-facebook-f"></i></a>
<a href="https://www.instagram.com/bhumikphotography/" target="_blank"><i class="fab fa-instagram"></i></a>
<a href="https://bhumikphotography.home.blog" target="_blank"><i class="fab fa-wordpress"></i></a>
<!--<a href="#"><i class="fab fa-whatsapp"></i></a>-->
</div>
</div>
</div>
</div>
</body>
</html>
2) Style.css
*{
margin: 0;
padding: 0;
text-decoration: none;
font-family:Trench;
}
body{
background: #fff;
overflow:hidden;
}
.middle{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.card{
cursor: pointer;
width: 300px;
height: 480px;
}
.front,.back{
width: 100%;
height: 100%;
overflow: hidden;
backface-visibility: hidden;
position: absolute;
transition: transform 1s linear;
}
/*.front img{
width: auto;
height: 100%;
box-shadow: 3px 5px 3px #aaaaaa;
}
.front{
transform: perspective(600px) rotateX(10deg);
}*/
.back{
/*width:100%;
background-image:url("backimage.jpg");*/
background:#2e2e2e;
transform: perspective(700px) rotateY(180deg);
}
.back-content{
color: #fff;
letter-spacing:3px;
text-align: center;
width: 100%;
}
.sm{
margin: 20px 0;
}
.sm a{
display: inline-flex;
width:30px;
height:30px;
background:#fff;
border-radius:50%;
color:#000;
font-size:30px;
text-align:center;
line-height:150px;
animation:animate 3s linear infinite;
transition: 0.4s;
justify-content: center;
padding:10px;
margin:25px;
}
@keyframes animate{
0%{
box-shadow:0 0 0 0 rgba(200,255,200,.7),0 0 0 0 rgba(0,0,200,.7);
}
40%{
box-shadow:0 0 0 20px rgba(255,150,90,0),0 0 0 0 rgba(255,109,74,.7);
}
80%{
box-shadow:0 0 0 20px rgba(255,109,80,0),0 0 0 30px rgba(255,109,74,0);
}
100%{
box-shadow:0 0 0 0 rgba(255,109,74,0),0 0 0 30px rgba(255,109,74,0);
}
/*0%{transform:scale(0,0);} 50%{transform:scale(0,0);} 100%{transform:scale(0,0);}*/
}
.sm a:hover{
background: #fff;
color: #2c3e50;
}
.card:hover > .front{
transform: perspective(600px) rotateY(-180deg);
}
.card:hover > .back{
transform: perspective(600px) rotateY(0deg);
}
Output:
Comments
Post a Comment
If you any Query and get more information please comment it. Thanks for visit our blog.