Custom Close Foundation Reveal Modal

Developer
Size
2,036 Kb
Views
12,144

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 Previews

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">&#215;</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');
});
Custom Close Foundation Reveal Modal - Script Codes
Custom Close Foundation Reveal Modal - Script Codes
Home Page Home
Developer Wing-Hou Chan
Username winghouchan
Uploaded December 06, 2022
Rating 3
Size 2,036 Kb
Views 12,144
Do you need developer help for Custom Close Foundation Reveal Modal?

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!

Wing-Hou Chan (winghouchan) Script Codes
Create amazing SEO content with AI!

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!