Pure CSS Animated Photo Stack
How do I make an pure css animated photo stack?
Pure CSS animated photo stack.. What is a pure css animated photo stack? How do you make a pure css animated photo stack? This script and codes were developed by Adam on 07 January 2023, Saturday.
Pure CSS Animated Photo Stack - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pure CSS Animated Photo Stack</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ *, *:before, *:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
body { background: #ccc; width: 300px; margin: 0 auto; font-family: 'Georgia'; }
header { position: absolute; top: 15px; right: 25px; z-index: 1; }
header * { padding: 0; margin: 0; }
figure { position: relative;
}
figure:before,
figure:after { content: ''; position: absolute; z-index: -1; top: 0; left: 0; width: 330px; height: 360px; border: 15px solid #fff; border-bottom-width: 45px; box-shadow: 5px 5px 10px #888; background: #555;
}
figure:before { transform: rotate(5deg); -webkit-transform: rotate(5deg); -moz-transform: rotate(5deg); -o-transform: rotate(5deg); -ms-transform: rotate(5deg);
}
figure:after { transform: rotate(15deg); -webkit-transform: rotate(15deg); -moz-transform: rotate(15deg); -o-transform: rotate(15deg); -ms-transform: rotate(15deg);
}
figure:hover:before,
figure:hover:after { transform: rotate(0deg); -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -o-transform: rotate(0deg); -ms-transform: rotate(0deg);
}
figure:before,
figure:after,
figure:hover,
figure:hover:before,
figure:hover:after { transition: 0.5s ease; -webkit-transition: 0.5s ease; -moz-transition: 0.5s ease; -o-transition: 0.5s ease; -ms-transition: 0.5s ease;
}
figure img { border: 15px solid #fff; border-bottom-width: 45px; box-shadow: 5px 5px 10px #888;
}
figure p { position: absolute; width: 100%; bottom: 0; left: 50%; margin-left: -25%; text-align: center;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <header> <h1>Photo Stack</h1> <p>Simple. Animated. Pure CSS.</p>
</header>
<figure> <img src="http://placebear.com/g/300/300" alt="Place Kitten photo" /> <p>Hover to staighten.</p>
</figure>
</body>
</html>
Pure CSS Animated Photo Stack - Script Codes CSS Codes
*, *:before, *:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
body { background: #ccc; width: 300px; margin: 0 auto; font-family: 'Georgia'; }
header { position: absolute; top: 15px; right: 25px; z-index: 1; }
header * { padding: 0; margin: 0; }
figure { position: relative;
}
figure:before,
figure:after { content: ''; position: absolute; z-index: -1; top: 0; left: 0; width: 330px; height: 360px; border: 15px solid #fff; border-bottom-width: 45px; box-shadow: 5px 5px 10px #888; background: #555;
}
figure:before { transform: rotate(5deg); -webkit-transform: rotate(5deg); -moz-transform: rotate(5deg); -o-transform: rotate(5deg); -ms-transform: rotate(5deg);
}
figure:after { transform: rotate(15deg); -webkit-transform: rotate(15deg); -moz-transform: rotate(15deg); -o-transform: rotate(15deg); -ms-transform: rotate(15deg);
}
figure:hover:before,
figure:hover:after { transform: rotate(0deg); -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -o-transform: rotate(0deg); -ms-transform: rotate(0deg);
}
figure:before,
figure:after,
figure:hover,
figure:hover:before,
figure:hover:after { transition: 0.5s ease; -webkit-transition: 0.5s ease; -moz-transition: 0.5s ease; -o-transition: 0.5s ease; -ms-transition: 0.5s ease;
}
figure img { border: 15px solid #fff; border-bottom-width: 45px; box-shadow: 5px 5px 10px #888;
}
figure p { position: absolute; width: 100%; bottom: 0; left: 50%; margin-left: -25%; text-align: center;
}
Developer | Adam |
Username | depthdev |
Uploaded | January 07, 2023 |
Rating | 3 |
Size | 2,486 Kb |
Views | 8,096 |
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 |
Canvas Arc | 2,389 Kb |
Pure CSS Bulging Box | 2,224 Kb |
Pure JavaScript Draggable Ball | 2,599 Kb |
Responsive. Interactive. SVG. | 20,357 Kb |
YouTube URL Parser | 3,519 Kb |
CSS Book with Scrolling Highlighter | 0 Kb |
Responsive SVG Line Graph with Animation | 3,954 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 |
Scroll to top button | DominicFrancois | 3,743 Kb |
The Monty Hall Problem | Melatonind | 4,360 Kb |
SVG Basics | HipsterBrown | 1,852 Kb |
Amazing CSS Menu with Notification Badges | Faizanasad | 2,549 Kb |
Eunice A | Ejbronze | 2,203 Kb |
Mapbox Directions with geolocation tracking | Pollardld | 5,827 Kb |
Css3 loader | Clknap | 2,391 Kb |
Yuliya v krylova | Rafszul | 37,351 Kb |
SCSS Unit Conversion | Jakob-e | 8,210 Kb |
A Pen by Jay | Jaycode | 3,784 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!