Vertical accordion menu
How do I make an vertical accordion menu?
What is a vertical accordion menu? How do you make a vertical accordion menu? This script and codes were developed by Kw7oe on 26 November 2022, Saturday.
Vertical accordion menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Vertical accordion menu</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- / Code from: The Code Player http://thecodeplayer.com/walkthrough/vertical-accordion-menu-using-jquery-css3 -->
<div id='accordian'> <ul> <li> <h3> <span class='icon-dashboard'></span> Dashboard </h3> <ul> <li> <a href='#'>Reports</a> </li> <li> <a href='#'>Search</a> </li> <li> <a href='#'>Graphs</a> </li> <li> <a href='#'>Settings</a> </li> </ul> </li> <li class='active'> <h3> <span class='icon-tasks'></span> Tasks </h3> <ul> <li> <a href='#'>Today's tasks</a> </li> <li> <a href='#'>Urgent</a> </li> <li> <a href='#'>Overdues</a> </li> <li> <a href='#'>Recurring</a> </li> <li> <a href='#'>Settings</a> </li> </ul> </li> <li> <h3> <span class='icon-calendar'></span> Calendar </h3> <ul> <li> <a href='#'>Current Month</a> </li> <li> <a href='#'>Current Week</a> </li> <li> <a href='#'>Previous Month</a> </li> <li> <a href='#'>Previous Week</a> </li> <li> <a href='#'>Next Month</a> </li> <li> <a href='#'>Next Week</a> </li> <li> <a href='#'>Team Calender</a> </li> <li> <a href='#'>Private Calender</a> </li> <li> <a href='#'>Settings</a> </li> </ul> </li> <li> <h3> <span class='icon-heart'></span> Favourites </h3> <ul> <li> <a href='#'>My Favs</a> </li> <li> <a href='#'>Team Favs</a> </li> <li> <a href='#'>Glabal Favs</a> </li> <li> <a href='#'>Settings</a> </li> </ul> </li> </ul>
</div>
<div id='credit'> Source Code from: <a href='http://thecodeplayer.com/walkthrough/vertical-accordion-menu-using-jquery-css3' target='_blank'>The Code Player Walkthrough</a>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Vertical accordion menu - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Nunito);
@import url(http://thecodeplayer.com/uploads/fonts/fontawesome/css/font-awesome.min.css);
#credit { position: fixed; bottom: 5%; left: 50%; transform: translateX(-50%); font-size: 16px;
}
#credit a { color: #3553cf; text-decoration: none;
}
#credit a:hover { color: #2841a9;
}
* { margin: 0; padding: 0;
}
body { background: #4EB889; font-family: Nunito, arial, verdana;
}
#accordian { background: #004050; width: 250px; margin: 10% auto 0 auto; color: white; box-shadow: 0 5px 15px 1px rgba(0, 0, 0, 0.5), 0 0 200px 1px rgba(255, 255, 255, 0.5);
}
#accordian h3 { font-size: 12px; line-height: 34px; padding: 0 10px; cursor: pointer; background: linear-gradient(#003040, #002535);
}
#accordian li { list-style-type: none;
}
#accordian ul ul { display: none;
}
#accordian ul li.active ul { display: block;
}
#accordian ul ul li a { color: white; text-decoration: none; font-size: 11px; line-height: 27px; display: block; padding: 0 15px; transition: all 0.15s;
}
#accordian ul ul li a:hover { background: #003545; border-left: 5px solid lightgreen;
}
Vertical accordion menu - Script Codes JS Codes
$(document).ready(function() { $("#accordian h3").click(function() { $("#accordian ul ul").slideUp() if (!$(this).next().is(":visible")) { $(this).next().slideDown() } });
});
Developer | Kw7oe |
Username | kw7oe |
Uploaded | November 26, 2022 |
Rating | 3 |
Size | 3,736 Kb |
Views | 28,336 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Tic Tac Toe | 3,793 Kb |
Calculator with JavaScript and CSS3 | 4,226 Kb |
A Pen by kw7oe | 2,477 Kb |
Wikipedia Viewer | 2,664 Kb |
Register Form with Bootstrap | 2,911 Kb |
Image Hover Effects | 3,497 Kb |
Autoplay 3D Image Slider | 2,320 Kb |
Image Hover Effects with CSS3 transform | 2,915 Kb |
Image with Slide Up Caption | 2,578 Kb |
Heat Map with D3.js | 3,507 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Algorithm practice | Abensur | 5,620 Kb |
Tumblr API | Juanv911 | 2,436 Kb |
Barber Shop | Bhlaird | 6,270 Kb |
Playing with transition timing | Mattgrosswork | 1,993 Kb |
A cube | KyleDavidE | 18,627 Kb |
TigerWoods Freecodecamp Page | Baileytj | 2,869 Kb |
BenU Maintenance Site | Ksherman | 4,893 Kb |
Heartbeat | Apetrov | 2,079 Kb |
Sass Get Function | Lukewatts | 2,155 Kb |
A Pen by Jess | Jessamyne | 5,100 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!