Animated Fixed Side Navigation Menu with hover effect






This is a simple menu bar with hover effect.The menu is a block structure in which the borders media radius of 30 pixel. All of the divisions are given with a simple shadow on the bottom. This program uses JavaScript, CSS and HTML. Hello the languages are append into the the HTML code using script tag and style tag.


This video singly describes the working of the navigation bar. When we we move the cursor onto the navigation button then the hover works and shows the navigation bar. Only that particular navigation bar is displayed.

Thank you all for you in this code. Try to code and make it success.

<!DOCTYPE html>

<html>


<head>

 <meta charset="UTF-8">

 <title>Sliding Navigation Buttons with hover effect | cspsyco.blogspot.com </title>
<!--code created by C S Psyco -->
   <style>

body
 {

 background-color: LIGHTGREEN;

}


.jinoy
 {

 background-color: #ffffff;
width: 500px;
 border-radius: 30px;
 box-shadow: 0px 5px 0px #333;

}


h1
 {

 font-family: verdana, sans-serif;
  font-weight: bold;

 text-align: center;

position: relative;

 color:  #333;

top: -10px;

}

a
{

 text-decoration: none;

}

div.button
{

background-color: #ffffff;

 color: #2c3e50;

border: none;

 border-radius: 30px;

width: 400px;

 height: 60px;

  position: fixed;

left: -335px;

transition: .7s ease;

}

#butn1
 {

top: 100px;


border-radius: 30px;
  }
#butn2
{

top: 200px;
border-radius: 30px;

}

#butn3
{

 top: 300px;border-radius: 30px;


}
#butn4
{

top: 400px;
border-radius: 30px;

}

div.button:hover
 {

 background-color: #ffffff;

  position: fixed;

 left: -50px;

 width: 500px;

 border-radius: 0px;

 box-shadow: 0px 5px 0px #333;

}

div.button:active
 {

 background-color: #2c3e50;
  transition: 0s;
  color: #ecf0f1;
   
}

</style>

</head>


<body>


<center>
<h1 CLASS="jinoy"
>THIS IS SIMPLE SIDE NAV BAR</h1>
  </center>
<a href="#">

 <div id="butn1" class="button">
 
<h1>JAVA</h1>

</div>

</a>


<a href="#">

<div id="butn2" class="button">

<h1>PYTHON</h1>
</div>

</a>


<a href="#">

 <div id="butn3" class="button">

 
<h1>HTML</h1>

 </div>

</a>


<a href="#">

 <div id="butn4" class="button">

  <h1>SQL</h1>

</div>
</a>


</body>


</html>

Comments

Popular posts from this blog

Node.js Cheat Sheet

Codeigniter ! Simple But Powerful

Introducing Cloudflare Pages ⚡