Iconbar with Hover Animation using HTML & CSS

Iconbar with Hover Animation using HTML & CSS

Hello developers, today in this blog you will learn to create an Iconbar with Hover Animation using HTML & CSS.

Navigation Bar is the most important UI element of the website for visitors or content viewers to find their required information or the page from the website. A website navigation bar is the most commonly represented as a horizontal list of links at the top of every page.

In this blog (Iconbar with Hover Animation), on the webpage, the icons are on the horizontal bar. The icons in the horizontal bar are Home, Message, Profile, Comment, and Purchase icons. The hover animation has been used in these icons. If you hover over the icon, the background color of the icon changes to a particular extent with the CSS border-radius property.

The source code of this Iconbar with Hover Animation using HTML & CSS is given below, if you want the source code of this program, you can copy it. You can use this Iconbar with Hover Animation using HTML & CSS on your projects.

Iconbar with Hover Animation using HTML & CSS [Source Code]

To make this website (Iconbar with Hover Animation), you need to create two files: an HTML file & a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.

<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Icon Bar || Learningrobo</title> <link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div class="icon-bar"> <a href="#"><i class="fa fa-home"></i></a> <a href="#"><i class="fa fa-envelope"></i></a> <a href="#"><i class="fa fa-user-o"></i></a> <a href="#"><i class="fa fa-comment-o"></i></a> <a href="#"><i class="fa fa-shopping-cart"></i></a> </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 make the page attractive create a CSS file with the name style.css and, remember that you have to create a file with a .css extension.


body {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #F2994A;  
background: -webkit-linear-gradient(to right, #F2C94C, #F2994A); 
background: linear-gradient(to right, #F2C94C, #F2994A); 
}

.icon-bar {
	margin-top: 20%;
	width: 600px;
	background: #fff;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	border-radius: 50px;
}
.icon-bar a {
	float: left;
	width: 20%;
	text-align: center;
	padding: 12px 0;
	transition: all 0.3s ease;
	color: #555;
	font-size: 36px;
}
.icon-bar a:hover {
	background: #12192c;
	color: #fff;
	border-radius: 50px;
}

.credit a{
	text-decoration: none;
	color: #000;
	font-weight: 800;
  }
  
  .credit {
	  margin-top: 10px;
  }
We hope you would like this Iconbar with Hover Animation using HTML & CSS.

Thank you for reading our blog. If you face any problem in creating this Iconbar with Hover Animation 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