3d stacked preview
How do I make an 3d stacked preview?
What is a 3d stacked preview? How do you make a 3d stacked preview? This script and codes were developed by Orion Drummond on 22 August 2022, Monday.
3d stacked preview - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>3d stacked preview</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='http://fonts.googleapis.com/css?family=Source+Code+Pro:200,400,700'> <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! */ body { background-color: #333; font-family: 'Source Code Pro', sans-serif;
}
nav { position: fixed; z-index: 1; top: 1ex; right: 1em; font-weight: 400; font-size: 2rem; letter-spacing: .14em; text-shadow: 0 0.15em 0.15em rgba(0, 0, 0, 0.25); text-transform: uppercase; transform-style: flat;
}
nav > :link,
nav > :visited { display: block; color: #ffffff; text-decoration: none;
}
.sections { position: relative; z-index: 0; perspective: 1024px; min-height: 100vh;
}
section { font-size: 1.44rem; font-weight: 200; column-width: 18em; column-gap: 8ex; box-shadow: 0 -0.15em 0 0 rgba(255, 255, 255, 0.5); position: absolute; z-index: 0; width: 100vw; height: 100vh; min-height: 100vh; top: 0; box-sizing: border-box; padding: 10ex 10em; transform: translateZ(-1024px) rotateX(-108deg); transform-style: perserve-3d; transition: .33s transform, .17s opacity, .15s top;
}
section:before { content: ""; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; background-image: linear-gradient(to bottom, black, transparent, white); opacity: .5;
}
section:nth-child(1) { top: 4rem; background-color: rgba(255, 69, 0, 0.33); color: #000000; z-index: -1;
}
section:nth-child(2) { top: 8rem; background-color: rgba(50, 205, 50, 0.33); color: #000000; z-index: -2;
}
section:nth-child(3) { top: 12rem; background-color: rgba(135, 206, 235, 0.33); color: #000000; z-index: -3;
}
section:target { z-index: 1; opacity: 1; top: 0; transform: translateZ(0); box-shadow: 0 0 0 0 transparent;
}
section:target:before { opacity: 0;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <nav> <a href="#s-1">One…</a> <a href="#s-2">Two…</a> <a href="#s-3">Three</a> <a href="#">Done.</a>
</nav>
<div class="sections"> <section id="s-1">1</section> <section id="s-2">2</section> <section id="s-3">3</section>
</div>
</body>
</html>
3d stacked preview - Script Codes CSS Codes
body { background-color: #333; font-family: 'Source Code Pro', sans-serif;
}
nav { position: fixed; z-index: 1; top: 1ex; right: 1em; font-weight: 400; font-size: 2rem; letter-spacing: .14em; text-shadow: 0 0.15em 0.15em rgba(0, 0, 0, 0.25); text-transform: uppercase; transform-style: flat;
}
nav > :link,
nav > :visited { display: block; color: #ffffff; text-decoration: none;
}
.sections { position: relative; z-index: 0; perspective: 1024px; min-height: 100vh;
}
section { font-size: 1.44rem; font-weight: 200; column-width: 18em; column-gap: 8ex; box-shadow: 0 -0.15em 0 0 rgba(255, 255, 255, 0.5); position: absolute; z-index: 0; width: 100vw; height: 100vh; min-height: 100vh; top: 0; box-sizing: border-box; padding: 10ex 10em; transform: translateZ(-1024px) rotateX(-108deg); transform-style: perserve-3d; transition: .33s transform, .17s opacity, .15s top;
}
section:before { content: ""; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; background-image: linear-gradient(to bottom, black, transparent, white); opacity: .5;
}
section:nth-child(1) { top: 4rem; background-color: rgba(255, 69, 0, 0.33); color: #000000; z-index: -1;
}
section:nth-child(2) { top: 8rem; background-color: rgba(50, 205, 50, 0.33); color: #000000; z-index: -2;
}
section:nth-child(3) { top: 12rem; background-color: rgba(135, 206, 235, 0.33); color: #000000; z-index: -3;
}
section:target { z-index: 1; opacity: 1; top: 0; transform: translateZ(0); box-shadow: 0 0 0 0 transparent;
}
section:target:before { opacity: 0;
}
Developer | Orion Drummond |
Username | tappily |
Uploaded | August 22, 2022 |
Rating | 3 |
Size | 3,760 Kb |
Views | 38,456 |
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 |
Reading Grid | 4,306 Kb |
Warp scaffold | 11,353 Kb |
Can define | 1,995 Kb |
Studded wallpaper | 2,252 Kb |
Responsive Background Image Loading | 2,071 Kb |
Flex-wrapped columns | 2,709 Kb |
Google Web Font LESS Mixin | 2,492 Kb |
Seltzer samples | 3,443 Kb |
3rd try | 3,465 Kb |
Flex scrolling tbody | 3,112 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 |
SCSS Unit Conversion | Jakob-e | 8,210 Kb |
React Template | Isac | 1,241 Kb |
Slider css only | Armandobau | 2,161 Kb |
Flip test | Madhes | 1,635 Kb |
A Pen by Kenny Mark | Kennymark | 5,574 Kb |
Materializecss input form | Jasonchan | 1,443 Kb |
A Pen by Stan Williams | Stanssongs | 6,706 Kb |
Caputre Cam with JS | KimmoCommit | 2,795 Kb |
Horizontal Navigation with Floats | Gymratpacks | 5,403 Kb |
CSS Variables | Jdsteinbach | 4,759 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!