YOUTUBE LINK - CLICK HERE
Source code :
<!DOCTYPE html>
<html>
<head>
<title>
Birthday cards
</title>
<script src="https://kit.fontawesome.com/69bab20bdc.js" crossorigin="anonymous"></script>
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.container {
width: 100%;
height: 100vh;
position: relative;
background-color: #1a2639;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.cards {
width: 400px;
height: 300px;
padding: 10px;
border: 2px solid wheat;
border-radius: 10px;
color: white;
position: relative;
}
.image-container {
width: 100%;
height: 100%;
position: relative;
filter: blur(10px);
transition: 1s;
}
.image-container:hover {
filter: blur(0px);
}
img {
width: 100%;
height: 100%;
}
.wish {
position: absolute;
border-bottom: 5px solid purple;
transform: translateX(0px);
transition: 2s;
font-size: 20px;
font-weight: 500;
}
.image-container:hover>.wish {
transform: translateX(100px);
}
.name {
position: relative;
bottom: -40px;
font-family: fantasy;
text-align: center;
letter-spacing: 2px;
}
.time {
font-size: 20px;
font-weight: 500;
font-family: cursive;
color: yellow;
padding: 10px;
}
.icons {
width: 400px;
color: white;
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
}
.social-media {
transition: 0.5s;
border-radius: 41px;
background: #1a2639;
box-shadow: 13px 13px 13px #151e2d, -13px -13px 13px #1f2e45;
}
.social-media:hover {
color: red;
}
.social-media>i {
margin-right: 5px;
}
</style>
</head>
<body>
<div class="container">
<div class="cards">
<div class="image-container">
<div class="image">
<img src="https://tse1.mm.bing.net/th?id=OIP.SzR4FM_YU48Y5dDvOrg1nQHaEK&pid=Api&P=0&w=313&h=176">
</div>
<div class="wish">HAPPY BIRTHDAY</div>
<div class="name">BALA KRISHNAN</div>
</div>
</div>
<div class="time"></div>
<div class="icons">
<div class="social-media">
<i class="fa-brands fa-facebook"></i>FACEBOOK
</div>
<div class="social-media">
<i class="fa-brands fa-instagram"></i>INSTAGRAM
</div>
<div class="social-media">
<i class="fa-brands fa-whatsapp"></i>WHATSAPP
</div>
</div>
</div>
<script>
var time = new Date();
document.getElementsByClassName("time")[0].innerHTML = time.toDateString();
</script>
</body>
</html>
Post a Comment