Hovers with popups
How do I make an hovers with popups?
What is a hovers with popups? How do you make a hovers with popups? This script and codes were developed by Zachary Olson on 10 November 2022, Thursday.
Hovers with popups - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Hovers with popups</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <ul class="projects"> <li id="p1" class="project"> <div class="project-preview"> <div class="project-preview-oncanvas">click me</div> <div class="project-preview-offcanvas">boo</div> </div> <div class="project-details"> Click again to close </div> </li> <li id="p2" class="project"> <div class="project-preview"> <div class="project-preview-oncanvas">click me</div> <div class="project-preview-offcanvas">boo</div> </div> <div class="project-details"> Click again to close </div> </li> <li id="p3" class="project"> <div class="project-preview"> <div class="project-preview-oncanvas">click me</div> <div class="project-preview-offcanvas">boo</div> </div> <div class="project-details"> Click again to close </div> </li> <li id="p4" class="project"> <div class="project-preview"> <div class="project-preview-oncanvas">click me</div> <div class="project-preview-offcanvas">boo</div> </div> <div class="project-details"> Click again to close </div> </li> <li id="p5" class="project"> <div class="project-preview"> <div class="project-preview-oncanvas">click me</div> <div class="project-preview-offcanvas">boo</div> </div> <div class="project-details"> Click again to close </div> </li> <li id="p6" class="project"> <div class="project-preview"> <div class="project-preview-oncanvas">click me</div> <div class="project-preview-offcanvas">boo</div> </div> <div class="project-details"> Click again to close </div> </li> <li id="p7" class="project"> <div class="project-preview"> <div class="project-preview-oncanvas">click me</div> <div class="project-preview-offcanvas">boo</div> </div> <div class="project-details"> Click again to close </div> </li>
</ul> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Hovers with popups - Script Codes CSS Codes
.projects, .project { list-style: none; margin: 0; padding: 0;
}
.projects { width: 80%; min-width: 780px; height: 550px; margin: 100px auto; position: relative;
}
.project:after { display: block; content: ''; clear: both;
}
.project { float: left; width: 30%; height: 150px; overflow: hidden; position: absolute; background-color: #555; font-size: 1.5em; text-align: center; color: rgba(255, 255, 255, 0.6); box-shadow: 0 0 5px #ccc; cursor: pointer; transition: width 0.3s ease-out, height 0.3s ease-out, margin 0.3s ease-out, background-color 0.3s ease-out, color 0.3s ease-out, z-index 0.1s 0.3s;
}
.project-preview { position: absolute; width: 125%; transition: all 0.5s;
}
.project-preview-oncanvas { float: left; width: 80%;
}
.project-preview-offcanvas { float: left; width: 20%;
}
.project:hover .project-preview { left: -25%; color: rgba(255, 255, 255, 096);
}
.project.open .project-preview { opacity: 0;
}
.project-details { opacity: 0;
}
.project.open .project-details { opacity: 1;
}
.project.open { width: 100%; height: 100%; margin: 0 !important; z-index: 1; transition: width 0.3s ease-out, height 0.3s ease-out, margin 0.3s ease-out;
}
.project:nth-of-type(3n+2) { margin-left: 35%;
}
.project:nth-of-type(3n+3) { margin-left: 70%;
}
.project:nth-of-type(n+4) { margin-top: 200px;
}
.project:nth-of-type(n+7) { margin-top: 400px;
}
#p1:hover, #p1.open, .newsitem:nth-of-type(1):hover .newsitem-content { background-color: #c5535b;
}
#p2:hover, #p2.open, .newsitem:nth-of-type(2):hover .newsitem-content { background-color: #c65499;
}
#p3:hover, #p3.open, .newsitem:nth-of-type(3):hover .newsitem-content { background-color: #6356c6;
}
#p4:hover, #p4.open, .newsitem:nth-of-type(4):hover .newsitem-content { background-color: #5782c7;
}
#p5:hover, #p5.open { background-color: #c78b57;
}
#p6:hover, #p6.open { background-color: #70cd6a;
}
#p7:hover, #p7.open { background-color: #a779d2;
}
body { padding: 0; background-color: #F1E0FF; font-family: sans-serif; font-size: 20px; color: #FFF; font-weight: 100; font-smoothing: antialiased;
}
Hovers with popups - Script Codes JS Codes
$(".project").click(function(){ $(this).toggleClass("open");
});
Developer | Zachary Olson |
Username | zacharyolson |
Uploaded | November 10, 2022 |
Rating | 3 |
Size | 2,380 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 |
Blackberry Mock | 1,865 Kb |
Nerdventure Feed | 4,817 Kb |
Convert JSON to ruby hash | 2,000 Kb |
A Pen by Zachary Olson | 1,163 Kb |
D3 version of animated chart dribbble | 4,327 Kb |
Direction-aware hover with pure css | 3,596 Kb |
Border Radius Bouncer | 2,415 Kb |
IMac Mock | 2,046 Kb |
IPad Mock | 2,008 Kb |
No JS Modals | 2,843 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 |
TheCalendar.js | The-teacher | 6,330 Kb |
Cofee and sugar | Tripack | 2,094 Kb |
A Pen by Gregory Potdevin | GregoryPotdevin | 1,713 Kb |
TigerWoods Freecodecamp Page | Baileytj | 2,869 Kb |
Buttons with style | Chbymnky | 2,082 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Sassy Buttons | Elyseholladay | 2,299 Kb |
Product item | Mymahesh11 | 2,256 Kb |
Comparison of Roboto Draft vs Roboto | Jxnblk | 2,880 Kb |
A Pen by Adrien Clerbois | AClerbois | 6,501 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!