Simple photo captions
How do I make an simple photo captions?
What is a simple photo captions? How do you make a simple photo captions? This script and codes were developed by Andy Hullinger on 17 January 2023, Tuesday.
Simple photo captions - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>simple photo captions</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <figure> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1412/felled-logs.jpg"> <figcaption> <h1>Blackmarket Lumber</h1> <p>These logs in Papua New Guinea were felled illegally on indigenous territory, where forests are protected.</p> <small>photo by National Geographic</small> </figcaption>
</figure>
</body>
</html>
Simple photo captions - Script Codes CSS Codes
/* basic reset and responsive image */
*{margin: 0; padding: 0; box-sizing: border-box;}
img{width: 100%;}
/* figure element Parent/Child technique */
figure{position: relative;}
figcaption{position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;}
/* Design styles */
figure{overflow: hidden;}
figcaption{ color:goldenrod; background-color: rgba(0,0,0,.7); display: -ms-grid; display: grid; padding: 5%;
}
figcaption h1{ font-family: Helvetica; font-weight: normal; font-size: 10vw;line-height: 0.8;
}
figcaption p{ font-family: Georgia; font-size: 4vw;
}
figcaption small{ -ms-flex-item-align: end; -ms-grid-row-align: end; align-self: end; justify-self: end; color:white; text-transform: uppercase;
}
/* Place figcaptionin postition for start of animated transition */
figure figcaption{ -webkit-transform:translateY(100%); transform:translateY(100%); -webkit-transition: color .3s .5s ease, -webkit-transform .5s ease; transition: color .3s .5s ease, -webkit-transform .5s ease; transition: transform .5s ease, color .3s .5s ease; transition: transform .5s ease, color .3s .5s ease, -webkit-transform .5s ease;
}
figure:hover figcaption{ -webkit-transform:scale(1); transform:scale(1); color:red;
}
Developer | Andy Hullinger |
Username | andyhullinger |
Uploaded | January 17, 2023 |
Rating | 3 |
Size | 2,030 Kb |
Views | 4,048 |
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 |
Solved By Flexbox - an excerpt | 6,971 Kb |
Mageractive Week 1 | 2,001 Kb |
Banner Example | 3,025 Kb |
Landing Page Demo | 4,804 Kb |
Hello Kitty Puppet Example TweenMax | 2,576 Kb |
My Quote Assignment | 1,673 Kb |
CSS type and layout - discrete elements | 2,010 Kb |
A Pen by Andy Hullinger | 2,227 Kb |
MFA iteration example | 7,065 Kb |
Simple Parallax ala Nike Better World | 4,177 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 |
Slider css only | Armandobau | 2,161 Kb |
Faux column absolute wrapper | Yurimorini | 1,823 Kb |
A Pen by Jay | Jaycode | 3,784 Kb |
Board Site | IndianaLuft | 10,542 Kb |
JS Countdown Timer | Ayoungh | 2,435 Kb |
Incremental game | Eprouver | 5,868 Kb |
SVG Text Masking | JMChristensen | 2,141 Kb |
A Pen by Theun | Tjoen | 6,152 Kb |
Content Changer | Cliffpyles | 4,538 Kb |
React TODO | Enieste | 3,320 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!