How to create Glassmorphism Cards Section | HTML & CSS Project - Frontend everything
Hello Everyone 👋Welcome to My New Blog. Today we have made an Flip Cards with the help of HTML and CSS Only!😍
I am Piyush, Sharing About Web development Daily. You can also check out me at @frontendeverything.
Before starting the blog, you might think about where you can use this project in real-life-based projects. So it's an Amazing Flip Card that you can use in your own blog project. So it will look very attractive.
Let's start making these amazing flip cards Using HTML & CSS step by step.
Video of the project,
So that was the preview now let us start making the project 😄 First, we will code HTML then CSS, and also I have shared codepen ink to make it easier for you.
HTML 🎈( step - 1)
In HTML we have used divs for the container and cards.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css">
<div class="card">
<div class="card-front"></div>
<div class="card-back">
<h2>Jane Doe<br><span>Senior Designer</span></h2>
<div class="social-icons">
<a href="#" class="fa fa-facebook" aria-hidden="true"></a>
<a href="#" class="fa fa-twitter" aria-hidden="true"></a>
<a href="#" class="fa fa-google-plus" aria-hidden="true"></a>
<a href="#" class="fa fa-linkedin" aria-hidden="true"></a>
<a href="#" class="fa fa-instagram" aria-hidden="true"></a>
</div>
</div>
</div>
After the HTML we will design the container and cards and give it flip cards.
Output till now
CSS🎈( step - 2)
@import "https://fonts.googleapis.com/css?family=Josefin+Sans:400,700";
body {
margin: 0;
padding: 0;
font-family: "Josefin Sans", sans-serif;
background-color: #eee;
}
body a {
color: #ffffff;
text-decoration: none;
}
.card {
position: absolute;
top: 50%;
left: 50%;
height: 400px;
width: 300px;
transform: translate(-50%, -50%);
transform-style: preserve-3d;
perspective: 600px;
transition: 0.5s;
}
.card:hover .card-front {
transform: rotateX(-180deg);
}
.card:hover .card-back {
transform: rotateX(0deg);
}
.card-front {
height: 100%;
width: 100%;
background-image: url(https://99px.ru/sstorage/56/2013/12/image_563012130153328414049.jpg);
background-position: 50% 50%;
background-size: cover;
position: absolute;
top: 0;
left: 0;
background-color: #000000;
backface-visibility: hidden;
transform: rotateX(0deg);
transition: 0.5s;
}
.card-back {
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
background-color: #000000;
backface-visibility: hidden;
transform: rotateX(180deg);
transition: 0.5s;
color: #ffffff;
text-align: center;
}
.card-back h2 {
margin: 60% auto 35% auto;
font-size: 26px;
}
.card-back h2 span {
font-size: 20px;
}
.card-back a {
height: 20px;
width: 20px;
padding: 5px 5px;
border-radius: 4px;
line-height: 20px;
}
.card-back a:hover {
color: #000000;
background-color: #fff;
}
Now we have done the CSS coding as well, now we will see the final output and also check the codepen link mentioned below.
Final Output
The codepen link is here for making your work easier!
the coder of this project:
.
If you found any value in this blog you can support me by buying me a coffee.
.
.
.
.
.
Thank You For Scrolling Till here 😊. If You gain any knowledge then do checkout me at @frontendeverything. I am Piyush 🎉 I provide Content related to programming, technology, web development Daily.
.
This blog is really helpful to deliver updated affairs over internet which is really appraisable.
ReplyDeleteirlande famille d'accueil