Simple Accordion in jQuery, Accordion in jQuery
I'm sharing simple jQuery Accordion which can be used anywhere in your project where you want to be accordian.
<html>
<head>
<title>Menu Slide Accordian</title>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.js"></script>
<script>
jQuery(document).ready(function(){
jQuery('.child-trigger').click(function() {
jQuery(this).parent().siblings('.menu-item-has-children').find('.child-trigger').removeClass('activate');
jQuery(this).parent().siblings('.menu-item-has-children').find('ul.sub-menu').slideUp(250);
jQuery(this).next('ul.sub-menu').slideToggle(250);
jQuery(this).next('ul.sub-menu').children('.menu-item-has-children').find('ul.sub-menu').slideUp(250);
jQuery(this).next('ul.sub-menu').children('.menu-item-has-children').find('.child-trigger').removeClass('activate');
jQuery(this).toggleClass('activate');
return false;
});
});
</script>
<style>
ul,li{
padding:0;
margin:0;
}
.menuSlide {
background: #0aa899;
height: 100%;
max-width: 440px;
width:100%;
top: 0;
position: fixed;
overflow: scroll;
overflow-x: hidden;
overflow-y: auto;
max-height: 100%;
-webkit-transition: all .4s ease;
-moz-transition: all .4s ease;
transition: all .4s ease;
}
ul.sub-menu{
display:none;
}
.menuSlide li {
display: block;
padding-right: 0;
border-bottom: 1px solid rgba(255, 255, 255, .35);
position: relative;
}
.menuSlide li a {
font-size: 16px;
padding: 20px 10px 20px 40px;
line-height: 20px;
display: block;
color: #ffffff;
text-transform: uppercase;
text-decoration:none;
}
.menuSlide ul.sub-menu {
background-color: rgba(10, 156, 142, 0.63);
}
.menuSlide .child-trigger {
display: block;
cursor: pointer;
position: absolute;
top: 0;
right: 0;
width: 55px;
min-width: 55px;
height: 60px;
padding: 0;
border-left: 1px solid rgba(255, 255, 255, .20);
}
.child-trigger i,
.child-trigger i:after {
width: 10px;
height: 1px;
background-color: #fff;
display: block;
}
.child-trigger i {
position: relative;
top: 50%;
margin: 0 auto;
}
.child-trigger i:after {
position: absolute;
content: '';
}
.child-trigger i:after {
-webkit-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}
.child-trigger.activate i:after {
-webkit-transform: rotate(-180deg);
-ms-transform: rotate(-180deg);
transform: rotate(-180deg);
}
</style>
</head>
<body>
<div class="menuSlide">
<ul>
<li class="menu-item"><a href="">Home</a></li>
<li class="menu-item"><a href="">Portfolio</a></li>
<li class="menu-item menu-item-has-children"><a href="#">Slide1</a>
<div class="child-trigger"><i></i></div>
<ul class="sub-menu" style="">
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
</ul>
</li>
<li class="menu-item menu-item-has-children"><a href="#">Slide2</a>
<div class="child-trigger"><i></i></div>
<ul class="sub-menu" style="">
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
</ul>
</li>
<li class="menu-item menu-item-has-children"><a href="#">Slide2</a>
<div class="child-trigger"><i></i></div>
<ul class="sub-menu" style="">
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
</ul>
</li>
</ul>
</div>
</body>
</html>
i9bet is known as Asia's leading reputable bookmaker. With up to 100,000 players per day. Includes quick deposits and withdrawals for bettors to play freely. - please click here Readmore: i9bet
Thông tin Liên hệ:
Website: https://i9bet.yachts/
Phone: 0901232567
Hastag: #i9bet #i9betyachts #trangchui9bet #gamei9bet
Địa chỉ: 340 Đ. Lũy Bán Bích, Hoà Thanh, Tân Phú, Thành phố Hồ Chí Minh Việt Nam
Enhance your pickleball performance by selecting the ideal paddle for your game. Our guide breaks down the essentials for your perfect pick.pickleball paddle material
Very efficiently written information. It will be beneficial to anybody who utilizes it, including me. Keep up the good work. For sure i will check out more posts. This site seems to get a good amount of visitors
Very efficiently written information. It will be beneficial to anybody who utilizes it, including me. Keep up the good work. For sure i will check out more posts. This site seems to get a good amount of visitors
Turn back time and rejuvenate your appearance with a face lift. Learn how this cosmetic procedure can help you look as young as you feel.lifting del volto milano
Thank you very much! Because this is a very useful article for me. I received the right kind of information for my query. I have a project that I'm currently working on and I've been keeping an eye out for such information. This is the website containing that information. Readmore >>>33win
Map: 100 Phan Văn Hớn, Tân Thới Nhất, Quận 12, Thành phố Hồ Chí Minh, Việt Nam
Hotline: 0368988888
Website: https://33win.pics/
Email: 33winpics@gmail.com
Renew your confidence with a facial lifting procedure, meticulously crafted to address specific concerns and enhance your overall look. Our experienced team prioritizes patient comfort and satisfaction, ensuring a seamless experience from consultation to recovery.Risultati del lifting del viso
This article was written by a real thinking writer without a doubt. I agree many of the with the solid points made by the writer. I’ll be back day in and day for further new updates. เว็บตรง UFABET สมัครที่นี้
am continually amazed by the amount of information available on this subject. What you presented was well researched and well worded in order to get your stand on this across to all your readers. เว็บพนันที่ดีที่สุดในปีนี้ 2024
I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. kfz gutachter bremerhaven
This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… kfz gutachter bergedorf
Embrace clean beauty with EliveraGroup's natural and eco-friendly cosmetics selection.vitamin d supplements
You there, this is really good post here. Thanks for taking the time to post such valuable information. Quality content is what always gets the visitors coming. kfz gutachter pinneberg
You there, this is really good post here. Thanks for taking the time to post such valuable information. Quality content is what always gets the visitors coming. kfz gutachter pinneberg
I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only. Thanks 789club
Map: 73 Chu Văn An, Phường 26, Bình Thạnh, Thành phố Hồ Chí Minh, Việt Nam
Hotline: 0321456763
Website: https://789av.club/
Email: 789avclubb@gmail.com
Hastag: #789av #789avclub #trangchu789av #nhacai789av #taigame789
Readmore
Please rotate your device
We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site