Polaroid Fade-in
How do I make an polaroid fade-in?
CSS3 keyframes are used for the fade in. RGBA is used for the (green-ish) filter.Keyfames are also used to fly the photos around the screen.. What is a polaroid fade-in? How do you make a polaroid fade-in? This script and codes were developed by David on 14 November 2022, Monday.
Polaroid Fade-in - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Polaroid Fade-in</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="masonry-container"> <h2>Click and hold a photo</h2> <div class="polaroid flip-1"> <div class="frame hover-info"> <div class="flatground"> <div class="title">Place Kitten</div> <div class="desc">Cats < Dogs.</div> </div> <div class="blackground"></div> <div class="filter"></div> <img src="http://placekitten.com/280/250" /> </div> <div class="caption"> <span class="code">04341077087-8</span> <span class="date">12/15/2012</span> <span class="fold corner"></span> <span class="fold flap"></span> </div> </div> <div class="polaroid flip-2"> <div class="frame hover-info"> <div class="flatground"> <div class="title">Fill Murray</div> <div class="desc">Zombieland, good. Garfield, bad.</div> </div> <div class="blackground"></div> <div class="filter"></div> <img src="http://fillmurray.com/280/250" /> </div> <div class="caption"> <span class="code">07345486351-1</span> <span class="date">12/27/2012</span> </div> </div> <div class="polaroid flip-3"> <div class="frame hover-info"> <div class="flatground"> <div class="title">Lorem Pixel</div> <div class="desc">I love this city</div> </div> <div class="blackground"></div> <div class="filter"></div> <img src="http://lorempixel.com/280/250/city" /> </div> <div class="caption"> <span class="code">97253846194-7</span> <span class="date">12/31/2012</span> </div> </div>
</div>
<!-- #masonry-container --> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Polaroid Fade-in - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Permanent+Marker|Press+Start+2P|Lato:300);
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
html { background: #363A35; color: #fff; font-family: 'Lato';
}
#masonry-container h2 { padding-bottom: 20px;
}
.polaroid { /*width: 300px;*/ display: inline-block; margin: 10px; position: relative;
}
.polaroid:hover { -webkit-transform: scale(1.1); -moz-transform: rotate(10deg); transform: rotate(10deg);
}
.polaroid.flip-1 { -webkit-transform: rotate(10deg); -moz-transform: rotate(10deg); transform: rotate(10deg); -webkit-animation-name: flip-right-1; -webkit-animation-duration: 2.5s;
}
.polaroid.flip-1:active, .polaroid.flip-2:active, .polaroid.flip-3:active { -webkit-transition: 0.8s linear; -webkit-transform: scale(1.1); -moz-transition: 0.8s linear; -moz-transform: scale(1.1); transition: 0.8s linear; transform: scale(1.1);
}
.polaroid.flip-1:active { left: 100px;
}
.polaroid.flip-2:active { left: 200px;
}
.polaroid.flip-3:active { left: 150px;
}
.polaroid.flip-2 { -webkit-transform: rotate(-25deg); -moz-transform: rotate(10deg); transform: rotate(10deg); -webkit-animation-name: flip-right-2; -webkit-animation-duration: 2.5s; -webkit-animation-delay: 1.9s;
}
.polaroid.flip-3 { -webkit-transform: rotate(15deg); -moz-transform: rotate(10deg); transform: rotate(10deg); -webkit-animation-name: flip-right-3; -webkit-animation-duration: 2.5s; -webkit-animation-delay: 3.8s;
}
.polaroid .frame { border-top: 12px solid #CBD0D4; border-right: 12px solid #CBD0D4; border-left: 12px solid #CBD0D4; overflow: hidden; position: relative; animation-duration: 3s; animation-name: fadeout;
}
.polaroid img { margin-bottom: -5px;
}
.polaroid .frame .filter { background: rgba(83, 146, 85, 0.3); height: 300px; width: 280px; position: absolute; top: 0;
}
.polaroid .frame .blackground { height: 300px; width: 280px; background: #1a1a1a; position: absolute; -webkit-animation-name: fadeout; -webkit-animation-duration: 20s; -webkit-animation-iteration-count: 1; -webkit-animation-fill-mode: forwards; -moz-animation-name: fadeout; -moz-animation-duration: 12s; -moz-animation-iteration-count: 1; -moz-animation-fill-mode: forwards; animation-name: fadeout; animation-duration: 12s; animation-iteration-count: 1; animation-fill-mode: forwards;
}
.polaroid .frame .flatground { background: rgba(83, 146, 85, 0.9); position: absolute; top: 600px; width: 100%; height: 100%; -webkit-transition: 0.5s linear;
}
.polaroid .frame:hover .flatground { top: 0px; z-index: 999;
}
.polaroid .frame .flatground .title,
.polaroid .frame .flatground .desc { text-align: left; margin: 10px;
}
.polaroid .frame .flatground .title { font-size: 22px; border-bottom: 1px solid #fff; padding-bottom: 10px;
}
.polaroid .caption { background: #CBD0D4; color: #1a1a1a; display: table; height: 62px; width: 100%; position: relative; left: 0; top: 0;
}
.polaroid .caption .date { display: table-cell; vertical-align:middle; font-family: 'Permanent Marker'; text-align: center;
}
.polaroid .caption .code { font-family: 'Press Start 2P'; font-size: 7px; position: absolute; right: 10px; top: 5px;
}
.polaroid .caption .fold { width: 60px; height: 40px; position: absolute; left: -1px; bottom: -1px; border-left: 0px solid transparent; border-right: 48px solid transparent; border-top: 1px solid transparent;
}
.polaroid .caption .fold.corner { border-bottom: 49px solid #363A35; /*box-shadow: 3px -3px 5px #a3a3a3;*/
}
.polaroid .caption .fold.flap { border-bottom: 50px solid #afafaf; -webkit-transform:rotate(180deg); -ms-transform:rotate(180deg); transform:rotate(180deg);
}
@-webkit-keyframes fadeout { from { opacity: 1; } to { opacity: 0; }
}
@-moz-keyframes fadeout { from { opacity: 1; } to { opacity: 0; }
}
@keyframes fadeout { from { opacity: 1; } to { opacity: 0; }
}
@-webkit-keyframes flip-right-1 { 0% { left: 0px; } 75% { left: 1200px; -webkit-transform: scale(1.1); -moz-transform: scale(1.1); transform: scale(1.1); }
}
@-webkit-keyframes flip-right-2 { 0% { left: 0px; } 75% { left: 900px; -webkit-transition: 0.8s ease-in; -webkit-transform: scale(1.1); -moz-transition: 0.8s ease-in; -moz-transform: scale(1.1); transition: 0.8s ease-in; transform: scale(1.1); }
}
@-webkit-keyframes flip-right-3 { 0% { left: 0px; } 75% { left: 600px; -webkit-transform: scale(1.1); -moz-transform: scale(1.1); transform: scale(1.1); }
}
Developer | David |
Username | david-east |
Uploaded | November 14, 2022 |
Rating | 3 |
Size | 2,986 Kb |
Views | 24,288 |
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 |
Flat UI Login Form | 3,079 Kb |
LESS - Nesting | 2,326 Kb |
IPhone Targeting | 2,073 Kb |
Restrictive Queries with Firebase | 2,083 Kb |
Mobile Disabled Animation | 2,985 Kb |
HTML5 Geolocation | 1,456 Kb |
A Pen by David | 1,823 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 |
Mondrian | Chrisarmstrong | 2,787 Kb |
Brian The CSS Bee | Jonitrythall | 3,922 Kb |
Responsive Minimal Blog Layout | Hackthevoid | 5,261 Kb |
Project Euler Problem 17 | Bfillmer | 2,739 Kb |
Tile Animation Thing | Frxnz | 4,332 Kb |
Bootstrap Carousel Fade Transition | Rowno | 2,484 Kb |
A Pen by Huan Nghiem | Nightshade | 10,646 Kb |
Flying Bee | Pwsm50 | 3,711 Kb |
Flexbox slider | Rendro | 3,459 Kb |
Hamburger Menu Animation | Salmanraza | 2,580 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!