Multiple Expand Collapse
How do I make an multiple expand collapse?
This multiple expand collapse using Adipalaz expand collapse plugin http://www.adipalaz.com/scripts/jquery/expand.js . You can see the original resource here http://www.adipalaz.com/experiments/jquery/multiple_expand_all_collapse_all.html. What is a multiple expand collapse? How do you make a multiple expand collapse? This script and codes were developed by Dzulfikar Adi Putra on 06 September 2022, Tuesday.
Multiple Expand Collapse - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Multiple Expand Collapse</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="content"> <h1>Expand Collapse Element</h1> <h2>using <a href="http://www.adipalaz.com/experiments/jquery/multiple_expand_all_collapse_all.html
">Adipalaz jquery expand.js</a> and modified by me</h2>
<h3 class="expand">Title 1</h3> <div class="collapse"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div> <h3 class="expand">Title 2</h3> <div class="collapse"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div> <h3 class="expand">Title 3</h3> <div class="collapse"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://www.adipalaz.com/scripts/jquery/expand.js'></script> <script src="js/index.js"></script>
</body>
</html>
Multiple Expand Collapse - Script Codes CSS Codes
/* start of my own code */
h2 a{ color : #fff !important;
}
h1{ color :#438228 !important;
}
h2, h2 a:hover{ background-color : #63AA44 !important;
}
/* end of my own code */
.collapse p {padding:0 10px 1em}
.switch {position:absolute; top:1.5em; right: 1.5em; padding:3px}
.post .switch {position:static; text-align:right}
.post .main{margin-bottom:.3em; padding-bottom:0}
.other li, .summary {margin-bottom:.3em; padding:1em; border:1px solid #e8e7e8; background-color:#f8f7f8}
.other ul {list-style-type:none; text-align:center}
/* --- Headings --- */
h1 { margin-bottom:1em; font-family:georgia,'times new roman',times,serif; font-size:2.5em; font-weight:normal; color:#c30
}
h2 {margin-bottom:1em; padding:3px; background-color:#eee}
h2, h3{font-size:1em}
.expand{padding-bottom:.75em}
/* --- Links --- */
a:link, a:visited { border:1px dotted #ccc; border-width:0; text-decoration:none; color:blue
}
a:hover, a:active, a:focus { border-style:solid; background-color:#f0f0f0; text-decoration:underline; outline:0 none
}
a:active, a:focus { color:red;
}
.expand a { display:block; padding:3px 10px
}
.expand a:link, .expand a:visited { border-width:1px; background-image:url(img/arrow-down.gif); background-repeat:no-repeat; background-position:98% 50%;
}
.expand a:hover, .expand a:active, .expand a:focus {
}
.expand a.open:link, .expand a.open:visited { border-style:solid; background:#eee url(img/arrow-up.gif) no-repeat 98% 50%
}
Multiple Expand Collapse - Script Codes JS Codes
$("#content h3.expand").toggler();
Developer | Dzulfikar Adi Putra |
Username | superpikar |
Uploaded | September 06, 2022 |
Rating | 3 |
Size | 2,733 Kb |
Views | 42,504 |
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 |
JS Tree Example JSON Data | 2,435 Kb |
Centering Image and Icon in Semantic-UI card | 2,546 Kb |
SVG Animation Follow Path - d3js | 3,068 Kb |
Image Map | 4,096 Kb |
Ionic - Wordpress REST API starter | 2,961 Kb |
Ionic tabs in the middle of the screen | 3,727 Kb |
Bulma breadcrumbs | 1,895 Kb |
D3js animation along path | 3,128 Kb |
Force Layout JSON Directed Graph using Dot Engine 2, nodes using array of object | 3,127 Kb |
Force Layout Directed Graph using dot engine dagre-d3js library, data from JSON | 6,536 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 |
Savemedia1.1 | EdsonAlcala | 2,148 Kb |
A Pen by Final Boss tommyb9 | FBtommyb9 | 55,354 Kb |
Pomodoro Timer | Sdas13 | 2,900 Kb |
Eunice A | Ejbronze | 2,203 Kb |
Blank Starter | Mhartington | 2,171 Kb |
Google Fonts Sass Mixin | HugoGiraudel | 4,237 Kb |
RWD Conversion Practice | Jxqr97 | 2,743 Kb |
Count up | Alanshortis | 2,391 Kb |
Sidebar Thing | Jonambas | 2,779 Kb |
Z-index demo | Kblh | 1,534 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!