CSS Collapse boxes
How do I make an css collapse boxes?
What is a css collapse boxes? How do you make a css collapse boxes? This script and codes were developed by Kev Rousseau on 15 December 2022, Thursday.
CSS Collapse boxes - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Collapse boxes</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrap active"> <button>My button</button> <div class="content">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
</div>
<div class="wrap"> <button>My button</button> <div class="content">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
</div>
<div class="wrap"> <button>My button</button> <div class="content">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js'></script> <script src="js/index.js"></script>
</body>
</html>
CSS Collapse boxes - Script Codes CSS Codes
.wrap { background-color: aqua; border: 1px solid; margin-bottom: 10px;
}
.wrap .content { height: 0; overflow: hidden; transition: height 0.5s ease;
}
.wrap.active .content { height: 10em; transition: height 0.5s ease;
}
CSS Collapse boxes - Script Codes JS Codes
$('button').on('click', function() { $('.wrap').removeClass('active'); $(this).parent().toggleClass('active');
});
Developer | Kev Rousseau |
Username | kevrousso |
Uploaded | December 15, 2022 |
Rating | 3 |
Size | 2,391 Kb |
Views | 14,168 |
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 |
Invert Page | 1,839 Kb |
Notifications | 3,496 Kb |
Find needle in haystack by looping through each item one by one | 2,071 Kb |
Custom FuzzySearch | 3,018 Kb |
Square animation on scroll with instant follow, fixed banner | 5,146 Kb |
Menu example 2 | 4,107 Kb |
Proxy Pattern | 1,642 Kb |
Menu example 1 | 2,685 Kb |
1-Discover-Backpacker | 8,202 Kb |
Base Pen | 1,294 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 |
Lazy Load for Background Images | The_ruther4d | 2,977 Kb |
Pictos font library from CodePen | Jstam | 3,790 Kb |
LeMandinque | Aadesida | 9,046 Kb |
Halo 5 REQ Guide Bookmarklet | Cwacht | 3,993 Kb |
Gradient-ui-button-mark-fx | Tabspace | 1,881 Kb |
Under construction | GhostRider | 1,642 Kb |
STIKHOI | Denmch | 7,122 Kb |
Angular Sandbox | Alexgurrola | 1,616 Kb |
Loading animation | Hafizfattah | 0 Kb |
CSS3 Form Page Design | Rssatnam | 3,613 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!