Responsive Card Hover Effect with Social Media Icons using HTML & CSS

Responsive Card Hover Effect with Social Media Icons using HTML & CSS
Hello developers, today in this blog you'll learn to create a Responsive Card Hover Effect with Social Media Icons using HTML & CSS.

A card comes in all sorts of shapes and sizes, but a common card will contain some information or content such as an icon, title, and some description of that particular title and icon.

In this blog (Responsive Card Hover Effect with Social Media Icons), there are three cards on this webpage. Each card contains an icon, title, and some description of that particular icon and title. In this, there are cards containing titles, icons, and some information about such as Facebook, Instagram, and Twitter. When you hover your mouse pointer over the card, the card will slide over upwards and the card appears with its respective color.

This page is made responsive, on the larger screen the card are arranged horizontally. Whereas on the smaller screen, the cards are arranged vertically that is cards are arranged one by one.

The source code of this Responsive Card Hover Effect with Social Media Icons is given below, if you want the source code of this program, you can copy it. You can use this Image Slider with your creativity and can take this project to the next level.

Responsive Card Hover Effect with Social Media Icons [Source Code]

To make this website, you would like to make two files: an HTML file & a CSS file. First, create an HTML file with the name of index.html and remember, you've to make a file with a .html extension.

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Card Hover Effect with Social Media Icons || Learningrobo</title> <meta name='viewport' content='width=device-width, initial-scale=1'> <link rel="stylesheet" href="style.css"> </head> <body> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <div class="card" id="facebook"> <i class="fa fa-facebook" area-hidden="true"></i> <h1>Facebook</h1> <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Suscipit similique omnis culpa, dolor minima numquam alias, nemo saepe, nesciunt deserunt nostrum quam magnam quibusdam aliquam quas facilis dolorum? Ex, sunt.</p> </div> <div class="card" id="instagram"> <i class="fa fa-instagram" area-hidden="true"></i> <h1>Instagram</h1> <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Suscipit similique omnis culpa, dolor minima numquam alias, nemo saepe, nesciunt deserunt nostrum quam magnam quibusdam aliquam quas facilis dolorum? Ex, sunt.</p> </div> <div class="card" id="twitter"> <i class="fa fa-twitter" area-hidden="true"></i> <h1>Twitter</h1> <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Suscipit similique omnis culpa, dolor minima numquam alias, nemo saepe, nesciunt deserunt nostrum quam magnam quibusdam aliquam quas facilis dolorum? Ex, sunt.</p> </div> <div class="credit">Made with <span style="color:tomato;font-size:20px;">❤</span> by <a href="https://www.learningrobo.com/">Learning Robo</a></div> </body> </html>
CSS provides style to an HTML page. To form the page responsive and attractive create a CSS file with the name style.css and remember that you've got to make a file with a .css extension.


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'PT Sans Narrow', sans-serif;
}
body{
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: space-around;
	flex-wrap: wrap;
	background: #161623;
	color: #fff;
	margin-top: 50px;
}
.card{
	width: 400px;
	height: 350px;
	padding: 20px;
	text-align: center;margin: 0 10px;
	background: rgba(255, 255, 255, 0.1);
	transition: 0.5s;
	border-radius: 15px;
}
.card i{
	width: 60px;
	height: 60px;
	border-radius: 50px;
	line-height: 60px;
	margin: auto;
	background: #fff;
	color: #333;
	font-size: 25px;
	position: relative;
	top: 80px;
	transition: .5s;
}
.card h1{
	font-size: 30px;
	color: #fff;
	font-weight: 600;
	letter-spacing: 1px;
	position: relative;
	top: 100px;
	transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55) 0s;
}
.card p{
	font-size: 16px;
	color: #fff;
	line-height: 26px;
	font-weight: 300;
	letter-spacing: 1px;
	opacity: 0;
	transition: .5s;
}
.card:hover p{
	opacity: 1;
	transition: .5s;
}
.card:hover i{
	top: -50px;
	transition: .5s;
}
.card:hover h1{
	top: -20px;
	transition: .5s;
} 
#facebook:hover{
	background: #3b5998;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	transition: .5s;
}
#facebook:hover i{
	color: #3b5998;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	transition: .5s;
}
#instagram:hover{
	background: #ef4056;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	transition: .5s;
}
#instagram:hover i{
	color: #ef4056;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	transition: .5s;
}
#twitter:hover{
	background: #55acee;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	transition: .5s;
}
#twitter:hover i{
	color: #55acee;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	transition: .5s;
}
@media(max-width: 753px){
	.card{
		margin: 30px;
	}
}
.credit a{
  text-decoration: none;
  color: tomato;
  font-weight: 800;
} 
.credit {
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
We hope you would like this Responsive Card Hover Effect with Social Media Icons using HTML & CSS.

Thank you for reading our blog. If you face any problem in creating this Responsive Card Hover Effect with Social Media Icons using HTML & CSS using HTML & CSS, then contact us or comment us. We’ll try to provide a solution to your problem as soon as possible.

Thank you
Learning robo team

Post a Comment

Thank you
Learning robo team

Post a Comment (0)

Previous Post Next Post
Learning Robo says...
code copied
Welcome