3D Transform Gallery
How do I make an 3d transform gallery?
What is a 3d transform gallery? How do you make a 3d transform gallery? This script and codes were developed by Aaron Cuddeback on 03 November 2022, Thursday.
3D Transform Gallery - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>3D Transform Gallery</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html>
<head> <title>3D Transform Gallery</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/interactions.css">
</head>
<body> <div class="container"> <header class="main-header clearfix"> <img class="logo" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/548344/camera.svg"> <h1 class="name">3DTransform <span>Gallery</span></h1> </header> <div class="content clearfix"> <div class="cube-container"> <div class="photo-cube"> <img class="front"src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/548344/1.jpg" alt=""> <div class="back photo-desc"> <h3>Earth from Space</h3> <p>Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo.</p> <a href="#" class="button">download</a> </div> <img class="left" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/548344/2.jpg" alt=""> <img class="right" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/548344/3.jpg" alt=""> </div> </div> <div class="cube-container"> <div class="photo-cube"> <img class="front"src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/548344/4.jpg" alt=""> <div class="back photo-desc"> <h3>Space Images</h3> <p>Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo.</p> <a href="#" class="button">download</a> </div> <img class="left" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/548344/5.jpg" alt=""> <img class="right" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/548344/6.jpg" alt=""> </div> </div> <div class="cube-container"> <div class="photo-cube"> <img class="front"src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/548344/17.jpg" alt=""> <div class="back photo-desc"> <h3>The Milky Way</h3> <p>Aenean lacinia bibendum nulla sed consectetur. Fusce dapibus, tellus ac cursus commodo.</p> <a href="#" class="button">download</a> </div> <img class="left" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/548344/18.jpg" alt=""> <img class="right" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/548344/19.jpg" alt=""> </div> </div> </div> </div>
</body>
</html>
</body>
</html>
3D Transform Gallery - Script Codes CSS Codes
/* ================================= Base Element Styles
==================================== */
* { box-sizing: border-box;
}
body { font: 1em/1.5 'Open Sans', sans-serif; color: #373737; background: #eaeaea; margin: 0;
}
a { text-decoration: none;
}
h1,
h2,
h3 { text-transform: uppercase;
}
h2 { font-size: 1.125em; color: #4a89ca; font-weight: 600; margin: 0;
}
h3 { font-size: 1.3em; line-height: 1.25em; margin-top: .85em; margin-bottom: .5em;
}
p { font-size: .875em; line-height: 1.4; margin: 0 0 1.5em;
}
/* ================================= Base Layout Styles
==================================== */
/* ---- Layout Containers ---- */
.container,
.content { margin: auto;
}
.container { width: 94.02985075%; max-width: 1260px; padding: 0 2.25em 4em; background: #fff;
}
.main-header { text-align: center; padding: 2.8em 0 3.8em;
}
.cube-container { max-width: 200px; text-align: center; margin: 0 auto 4.5em;
}
/* ---- Page Elements ---- */
.name { font-size: 1.65em; font-weight: 800; margin: 0 0 1.5em; line-height: 1;
}
.name span { font-weight: 300; margin-left: -7px;
}
.logo { width: 45px; margin-bottom: .4em; cursor: pointer;
}
.button { font-size: .8em; color: #fff; width: 90%; line-height: 1.15; font-weight: 700; display: block; text-decoration: none; text-transform: uppercase; padding: .95em 0; border-radius: .5em; background: rgba(74,137,202, .8); margin: auto;
}
/* ---- Photo Overlay ---- */
.photo-desc { font-size: .85em; color: #fff; padding: 1.1em 1em 0; background: #345d88;
}
/* ---- Float clearfix ---- */
.clearfix::after { content: " "; display: table; clear: both;
}
/* ================================= Media Queries
==================================== */
@media (min-width: 769px) { .cube-container { float: left; margin-left: 16.6%; }
}
@media (min-width: 1025px) { .cube-container:first-child { margin-left: 0; } .cube-container:last-child{ float: right; } .content { max-width: 900px; margin: auto; }
}
/* ================================= Button Transitions
==================================== */
.button { -webkit-transition: background .3s; transition: background .3s;
}
.button:hover { background: rgba(74,137,202, 1);
}
/* ================================= Photo 3D Transforms & Transitions
==================================== */
.cube-container { box-shadow: 0 18px 40px 5px rgba(0,0,0,.4); perspectiv: 600px;
}
.photo-cube { -webkit-transition: -webkit-transform 2s ease-in-out; transition: -webkit-transform 2s ease-in-out; transition: transform 2s ease-in-out; transition: transform 2s ease-in-out, -webkit-transform 2s ease-in-out; width: 220px; height: 200px; -webkit-transform-style: preserve-3d; transform-style: preserve-3d;
}
.photo-cube:hover { -webkit-transform: rotateY(-270deg); transform: rotateY(-270deg);
}
.front,
.back,
.left,
.right { width: 100%; height: 100%; display: block; position: absolute;
}
.front { -webkit-transform: translateZ(110px); transform: translateZ(110px); /* or */ -webkit-transform: translate3d(0, 0, 110); transform: translate3d(0, 0, 110);
}
.back { -webkit-transform: translateZ(-110px) rotateY(270deg); transform: translateZ(-110px) rotateY(270deg); -webkit-transform-origin: center left; transform-origin: center left;
}
.left { -webkit-transform: rotateY(-270deg) translateX(110px); transform: rotateY(-270deg) translateX(110px); /* or */ -webkit-transform: rotateY(-270deg) translate3d(110px, 0, 0); transform: rotateY(-270deg) translate3d(110px, 0, 0); -webkit-transform-origin: top right; transform-origin: top right;
}
.right { -webkit-transform: translateZ(-110px) rotateY(180deg); transform: translateZ(-110px) rotateY(180deg);
}
Developer | Aaron Cuddeback |
Username | gymratpacks |
Uploaded | November 03, 2022 |
Rating | 3 |
Size | 3,024 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 |
CSS Transforms | 3,753 Kb |
Horizontal Navigation with Floats | 5,403 Kb |
SVG Stars Animation | 3,088 Kb |
Random Quote Generator | 3,962 Kb |
Animating SVG with CSS | 2,867 Kb |
Html forms | 2,900 Kb |
Booking Form Example | 1,809 Kb |
Bootstrap Boilerplate | 3,910 Kb |
Music Player Card Interface | 4,682 Kb |
Begins with and ends with and contains selectors | 2,379 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 |
P5.js data visualization | Enginarslan | 2,233 Kb |
IE11 Test | Boostnewmedia | 4,998 Kb |
Hard-Stop Gradients | Mackdoyle | 2,288 Kb |
The Monty Hall Problem | Melatonind | 4,360 Kb |
Android Play Store With Slick Carousel | -J0hn- | 4,982 Kb |
Pure CSS Read More Arrow | Zephyr | 1,747 Kb |
Playing with FlexBox | _Billy_Brown | 3,162 Kb |
Client-side Email Validation | Collizo4sky | 1,538 Kb |
Materializecss input form | Jasonchan | 1,443 Kb |
React Recipe Box | Krokodill | 5,347 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!