3d stacked preview

Size
3,760 Kb
Views
38,456

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 Previews

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;
}
3d stacked preview - Script Codes
3d stacked preview - Script Codes
Home Page Home
Developer Orion Drummond
Username tappily
Uploaded August 22, 2022
Rating 3
Size 3,760 Kb
Views 38,456
Do you need developer help for 3d stacked preview?

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!

Orion Drummond (tappily) Script Codes
Create amazing art & images with AI!

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!