JQuery FullScreen Overlay
How do I make an jquery fullscreen overlay?
Using JQuery to create an "open" and "close" button to trigger and remove a fullscreen overlay. . What is a jquery fullscreen overlay? How do you make a jquery fullscreen overlay? This script and codes were developed by Eric Tompkins on 27 August 2022, Saturday.
JQuery FullScreen Overlay - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>JQuery FullScreen Overlay</title> <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html> <head> <title>Fullscreen Overlay Animation</title> </head> <body> <div id="container"> <button class="menuButton" id="overlay-menu" type="button">Open</button> </div> <div class="overlay overlay-data"> <button type="button" class="overlay-close">Close</button> <nav> <ul> <li><p>place something here</p></li> </ul> </nav> </div> <script> $( "#overlay-menu" ).click(function() { $( ".overlay" ).addClass ('overlay-open'); }); </script> <script> $( ".overlay-close" ).click(function() { $( ".overlay" ).removeClass ( 'overlay-open' ); }); </script> </body>
</html>
</body>
</html>
JQuery FullScreen Overlay - Script Codes CSS Codes
#container { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; height: 50px; width: 100px;
}
#overlay-menu { width: 100px; height: 50px:
}
body { background: #7a7a7a; color: #1D1F20; font-family: "Roboto", sans-serif;
}
.menuButton { background-color: #7a7a7a; text-indent: 0; border: 1px solid #000; color: #fff font-size: 15px; font-weight: bold;
}
.menuButton:hover { background-color: #474747;
}
.menuButton:active { position: relative; top; 1px;
}
.overlay { position: fixed; width: 100%; height: 100%; top: 0; left: 0; background: rgba(255,255,255,0.80);
}
.overlay nav { text-align: center; position: relative; top: 20%; height: 60%; font-size: 80px;
}
.overlay ul { list-style: none; padding: 0; margin: 0 auto; display: inline-block; height: 100%; position: relative;
}
.overlay ul li { display: inline-block; height: 20%;
}
.overlay ul li a { font-weight: 300; text-decoration: none; display: block; color: #1d1f20; margin-right: 40px; list-style: none;
}
.overlay-close { width: 150px; height: 50px; position: absolute; right: 10px; top: 10px; border: 1px solid #000; font-size: 14px;
}
.overlay-data { opacity: 0; visibility: hidden; -webkit-transition: opacity 0.5s; transition: opacity 0.5s; visibility: 0s 0.5s; transition: opacity 0.5s, visibility 0s 0.5s;
}
.overlay-open { opacity: 1; visibility: visible; -webkit-transition: opacity 0.5s; transition: opacity 0.5s;
}
Developer | Eric Tompkins |
Username | _codemics |
Uploaded | August 27, 2022 |
Rating | 3.5 |
Size | 2,252 Kb |
Views | 46,552 |
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 |
Using Meny.js - Create 3D Nav Effect | 3,191 Kb |
Menu Background Image Rollover | 2,147 Kb |
3D Rollover Sign-Up Form | 3,727 Kb |
JQuery - Easy Sticky Nav Bar | 2,551 Kb |
A Pen by Eric Tompkins | 1,243 Kb |
Responsive Email Template | 4,175 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 |
Bootstrap example | Ssaakkaa | 2,716 Kb |
Print element on a page | Mrs_snow | 2,081 Kb |
Canvas Orbital Trails v2 | Jackrugile | 3,421 Kb |
Konami Code Easter Egg | Teolitto | 3,051 Kb |
Minimal Material Design Form Input | Koenigsegg1 | 3,076 Kb |
Animated rainbow wave on canvas | Icodeforlove | 2,777 Kb |
BlueBox Fork | Huskynation | 12,675 Kb |
Horizontal Navigation with Floats | Gymratpacks | 5,403 Kb |
Promodoro | Bencarp | 1,712 Kb |
The Fly | GianlucaGuarini | 3,405 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!