Custom Close Foundation Reveal Modal
How do I make an custom close foundation reveal modal?
Custom Close Foundation Reveal Modal. The solution for the issue posed here: http://foundation.zurb.com/forum/posts/7214-another-closing-button-for-reveal-modal-f5. What is a custom close foundation reveal modal? How do you make a custom close foundation reveal modal? This script and codes were developed by Wing-Hou Chan on 06 December 2022, Tuesday.
Custom Close Foundation Reveal Modal - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Custom Close Foundation Reveal Modal</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel='stylesheet prefetch' href='https://cdn.foundation5.zurb.com/foundation.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="myModal" class="reveal-modal" data-reveal> <h2>Awesome. I have it.</h2> <p class="lead">Your couch. It is mine.</p> <p>Im a cool paragraph that lives inside of an even cooler modal. Wins</p> <a class="close-reveal-modal">×</a> <a class="button custom-close-reveal-modal">Custom Close</a>
</div>
<div class="row"> <h1>Custom Close Foundation Reveal Modal</h1> <a href="#" class="button" data-reveal-id="myModal" data-reveal>Click Me For A Modal</a>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://cdn.foundation5.zurb.com/foundation.js'></script> <script src="js/index.js"></script>
</body>
</html>
Custom Close Foundation Reveal Modal - Script Codes CSS Codes
h1 { font-family: 'Open Sans', sans-serif;
}
Custom Close Foundation Reveal Modal - Script Codes JS Codes
$(document).foundation();
$('a.custom-close-reveal-modal').click(function(){ $('#myModal').foundation('reveal', 'close');
});
Developer | Wing-Hou Chan |
Username | winghouchan |
Uploaded | December 06, 2022 |
Rating | 3 |
Size | 2,036 Kb |
Views | 12,144 |
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 |
Offcanvas with Icon Bar | 2,171 Kb |
Opening Reveal Modal On Document Ready | 1,787 Kb |
How to use Orbit with background images | 2,555 Kb |
Mega Menu Experiment 2 | 2,465 Kb |
Fixed Width Element in Responsive Design | 2,422 Kb |
Source Ordering Columns and Mobile-First | 1,862 Kb |
Full Screen Orbit With Background Image | 2,102 Kb |
Stop Page Jumping To Top When Sticky Topbar Menu Icon Is Clicked | 2,936 Kb |
Using a Range Slider Inside a Reveal Modal | 1,858 Kb |
Clearing Form With Abide Validation | 1,924 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 |
Free css icon set v2 - one div | Ben_jammin | 0 Kb |
A Pen by Malith Hettiarachchi | MalZiiirA | 5,531 Kb |
Spiralator 9000 | AdmiralPotato | 4,671 Kb |
Angular-HAML | Cwacht | 2,022 Kb |
IE11 Test | Boostnewmedia | 4,998 Kb |
Hoi hoi | JohnTheCat | 7,248 Kb |
Emberjs Bootstrap Modal Carousel | Somethingkindawierd | 4,233 Kb |
Brown by pure CSS, no image, no javascript | Aaronchuo | 2,652 Kb |
Owl Carousel - jumpTo | OwlFonk | 2,553 Kb |
3d css cube | Semenchenko | 4,578 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!