Image caption overlay
How do I make an image caption overlay?
Hovering over image displays caption via CSS transition, dawg.. What is a image caption overlay? How do you make a image caption overlay? This script and codes were developed by Mitch Pruitt on 08 November 2022, Tuesday.
Image caption overlay - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Image caption overlay</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <div class="group"> <div class="hold-it"> <img src="http://lorempixel.com/300/300/nature" /> <span class="overlay"><p>Much much more mysteriously python tediously some more so darn crud after</p></span> </div> <div class="hold-it"> <img src="http://lorempixel.com/300/300/sports" /> <span class="overlay"><p>Leaned callously that pointed piranha far this when the much far so jeepers dear hey wearisome rhinoceros</p></span> </div> <div class="hold-it"> <img src="http://lorempixel.com/300/300/food" /> <span class="overlay"><p>Endless persistently dove black where hey and spoke a much that excepting goodness poutingly then stylistic</p></span> </div> <div class="hold-it"> <img src="http://lorempixel.com/300/300/city" /> <span class="overlay"><p>Darn vivid derisive crud quietly walked but newt gorilla until tacitly about far</p></span> </div> </div>
</body>
</body>
</html>
Image caption overlay - Script Codes CSS Codes
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
body { background-image: url(https://subtlepatterns.com/patterns/first_aid_kit.png)
}
.group { width: 600px; margin: 40px auto auto auto; -webkit-border-radius: 4px; border-radius: 4px; overflow: hidden;
}
.hold-it { position: relative; width: 300px; height: 300px; margin-left: auto; margin-right: auto; float: left; overflow: hidden;
}
.overlay { display: block; position: absolute; top: auto; right: auto; left: 0; bottom: 0; z-index: 2; width: 100%; height: 100%; padding: 10px; color: #fff; background-color: #000; opacity: 0; -webkit-transition: all 250ms ease-in; -moz-transition: all 250ms ease-in; -ms-transition: all 250ms ease-in; -o-transition: all 250ms ease-in; transition: all 250ms ease-in;
}
.hold-it:hover .overlay { opacity: .75;
}
p { position: absolute; bottom: 0; padding-bottom: 6px; margin: auto; font: 100 32px "Helvetica Neue"; letter-spacing: 1px;
}
Developer | Mitch Pruitt |
Username | mitchdot |
Uploaded | November 08, 2022 |
Rating | 3 |
Size | 2,107 Kb |
Views | 20,240 |
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 |
Sooper cool article header image | 3,583 Kb |
ThisIsMyJam Player | 5,945 Kb |
West Eastern Divan rollover | 2,963 Kb |
Simple responsive drop-down menu | 2,178 Kb |
The Iron Triangle | 2,997 Kb |
Flexbox-based responsive menu | 3,589 Kb |
Image header overlay | 2,188 Kb |
Underlined form fields | 2,323 Kb |
Threadless-style rollover menu | 2,195 Kb |
Contact Card Flip | 5,338 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 |
Simple CSS loader. | Cabrera | 2,574 Kb |
A Pen by Adrien Clerbois | AClerbois | 6,501 Kb |
ASCII triangle image overlay | Mitchdot | 2,200 Kb |
Kut D3 | Jellevrswk | 3,687 Kb |
Tic Tac Toe | Volv | 4,862 Kb |
A simple log in form made with css | Mayurelbhar | 2,160 Kb |
ABVI Menu Discarded | Overdrivemachines | 3,607 Kb |
Velocity.js custom stagger | Tommiehansen | 4,805 Kb |
Owl Carousel - jumpTo | OwlFonk | 2,553 Kb |
Drill-down Map | Good886 | 8,484 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!