HTML CSS & JAVASCRIPT, YouTube

Creating Animated Sliding Menu Indicator

Creating Animated Sliding Menu Indicator using Html CSS & vanilla javascript

Coding BD given here Creating Animated Sliding Menu Indicator using Html CSS & vanilla javascript. We create css animation effects. It is the most important part Of Pure Animated Menu Indicator. We have given more importance to vanilla javascript. We have used an Animated Active Menu Indicator because they need high effects. Creating Animated Sliding Menu Indicator. Thank you so much.

➡️ How to create responsive wall Photo Frame: https://www.youtube.com/watch?v=aT6QLrfO_oU   

➡️ CSS 3d Layered Image Hover Effects CSS: https://www.youtube.com/watch?v=0qdWV7-Oi6k&t=66s 

➡️Responsive website html css javascript | part( 1 ): https://www.youtube.com/watch?v=g0ART… 

➡️ Responsive Services Section: https://www.youtube.com/watch?v=wvLky…

➡️ CSS Clip Path Hover Circle Hover Effects: https://www.youtube.com/watch?v=cRSgo…

➡️ CSS Responsive CARD Hover Effects & Adding Stroke to Text | Html5 CSS3 2021: https://www.youtube.com/watch?v=QVMJ5…

➡️  Neon Light Button Animation Effects on Hover | CSS Snake Border: https://www.youtube.com/watch?v=GtVSF… 

➡️ Responsive Box Model Web Design Using CSS Flexbox: https://www.youtube.com/watch?v=03RuV… 

➡️ Digital Clock with Animated Progress-bar | HTML CSS & Vanilla Javascript: https://www.youtube.com/watch?v=6A6Hp… 

➡️ How to create a light to dark mode for HTML CSS & Vanilla Javascript 2021: https://www.youtube.com/watch?v=43FbR…  

➡️Scroll top button : https://www.youtube.com/watch?v=9fDEJ… 
➡️ Animated eid mubarak 2021 using Html CSS & Javascript: https://www.youtube.com/watch?v=60H2g…

Here is all Source code. You can follow this steps:

  1. Create 1 folder
  2. create 1 HTML file: index.html
  3. create 1 CSS file: style.css
  4. copy HTML code and pest HTML file, copy CSS code and past CSS file
  5. Now give a smile and jump out loud. 😍😍
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Animated Menu </title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
   <nav>
       <div id="marker"></div>
       <a href="#">Home</a>
       <a href="#">About</a>
       <a href="#">Services</a>
       <a href="#">Portfolio</a>
       <a href="#">Team</a>
       <a href="#">Contact</a>
   </nav>

   <script>
       const marker = document.querySelector('#marker');
       const item = document.querySelectorAll('nav a');
       function indicator(e) {
           marker.style.left = e.offsetLeft+'px';
           marker.style.width = e.offsetWidth+'px';
       }
       item.forEach(link => {
           link.addEventListener('click', (e) => {
               indicator(e.target)
           })
       })
   </script>
</body>
</html>
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: consolas;
}

body{
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

nav{
	position: relative;
}

nav a{
	position: relative;
	margin: 0 20px;
	font-size: 2em;
	color: #000;
	text-decoration: none;
}

nav #marker{
	position: absolute;
	left: 0;
	bottom: -8px;
	height: 4px;
	width: 0;
	background: #000;
	transition: 0.5s;
	border-radius: 4px;
	-webkit-transition: 0.5s;
	-moz-transition: 0.5s;
	-ms-transition: 0.5s;
	-o-transition: 0.5s;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-ms-border-radius: 4px;
	-o-border-radius: 4px;
}

Don’t Forget to Follow me on all Social Network,

YouTube: https://www.youtube.com/channel/UCw9etYfx-25oKB_qt1fFNWw

Facebook Page: Coding BD – https://www.facebook.com/codingbd2021

LinkedIn: https://www.linkedin.com/in/sajjat-hossain-0617961b1

GitHub: https://github.com/cgsaleh8383

#codingbd #animatedMenu #htmlcssJavascript

Related Posts

Leave a Reply

Your email address will not be published.