CSS Only Modal
How do I make an css only modal?
CSS only modals.. What is a css only modal? How do you make a css only modal? This script and codes were developed by Matt Shull on 28 September 2022, Wednesday.
CSS Only Modal - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Only Modal</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> <a href="#modal1" class="modalLink">First Modal</a>
<a href="#modal2" class="modalLink">Second Modal</a>
<a href="#modal3" class="modalLink">Third Modal</a>
<article id="modal1" class="modal"> First Modal <a href="#" class="closeLink">Close</a>
</article>
<article id="modal2" class="modal"> Second Modal <a href="#" class="closeLink">Close</a>
</article>
<article id="modal3" class="modal"> Third Modal <a href="#" class="closeLink">Close</a>
</article>
</body>
</html>
CSS Only Modal - Script Codes CSS Codes
body { background-color:#bdc3c7;
}
.modalLink { text-decoration:none; color:white; background-color:#e74c3c; padding:15px; border-radius:5px;
}
.closeLink { display:block; position:absolute; bottom:10px; padding:10px 20px; color:#d35400; background-color:#f1c40f; text-decoration:none; border-radius:5px;
}
.modal:target { display:block; top:0px; -webkit-animation: showModal .7s; /* Chrome, Safari, Opera */ animation: showModal .7s;
}
.modal { position:fixed; height:400px; width:350px; background-color:#3498db; color:black; left:calc(50% - 185px); padding:20px; top:-440px;
}
@-webkit-keyframes showModal { from {top:-440px;} to {top:0;}
}
@keyframes showModal { from {top:-440px;} to {top:0;}
}
Developer | Matt Shull |
Username | derekshull |
Uploaded | September 28, 2022 |
Rating | 3 |
Size | 1,815 Kb |
Views | 26,312 |
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 |
SPP Mainpage | 4,446 Kb |
Peter Miller Wireframe | 5,182 Kb |
Angular 2-way Data Binding Example | 1,342 Kb |
Template Style Prototype | 7,358 Kb |
Angular Responsive Select Box | 1,832 Kb |
San Jose Business Listings | 5,513 Kb |
Tri-Cities Interior Wireframe | 5,449 Kb |
Shopping List Example | 1,951 Kb |
CSS Only Parallax | 2,449 Kb |
San Jose Services Wireframe | 5,314 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 |
CLE_Old_March | Saritaleroux | 6,234 Kb |
Basic HTML Slideshow | Tomhodgins | 3,386 Kb |
Responsive Advert | James_zedd | 2,354 Kb |
A Pen by James Podles | Jpod | 2,656 Kb |
Apple website | Jds317 | 1,835 Kb |
A Pen by Mohomed Anees | Mohomedanees | 12,597 Kb |
GrcJS | Vino6 | 2,047 Kb |
Header | Er40 | 1,542 Kb |
Google Fonts Sass Mixin | HugoGiraudel | 4,237 Kb |
AngularJS Datalist Directive | M-e-conroy | 2,366 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!