More Perspective
How do I make an more perspective?
What is a more perspective? How do you make a more perspective? This script and codes were developed by Andy Vanee on 21 September 2022, Wednesday.
More Perspective - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>More Perspective</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> <div class="perspective-wrapper"> <div class="z-wrapper"> <div class="book"></div> <div class="spine"></div> <div class="backface"></div> </div>
</div>
<div class="perspective-wrapper"> <h3> 3D CSS perspective transformation </h3> <p> This is a first crack at this type of 3D CSS transform. The challenge is to take an image and transform it one way for the cover and -270 degrees for the spine. </p> <p> <a href="http://nos.twnsnd.co/" target="_blank">Image taken from New Old Stock</a> </p>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
</body>
</html>
More Perspective - Script Codes CSS Codes
.perspective-wrapper { position: relative; height: 700px; width: 500px; line-height: 1.4; margin: 4em auto; perspective: 1500px;
}
.z-wrapper { perspective: 1500px; height: 700px;
}
.book, .spine, .backface { position: absolute; width: 500px; height: 700px; top: 0; left: 0; border: 1px solid #444; opacity: 0.9;
}
.book { z-index: 2; background-image: url(https://68.media.tumblr.com/f25e73a39b8c137994c2d7d4401e28a8/tumblr_ojhlspeb4S1sfie3io1_1280.jpg); background-size: 700px; background-position: 560px;
}
.backface { z-index: 0; box-shadow: -10px 20px 120px rgba(0, 0, 0, 0.9); background-color: black;
}
.spine { position: absolute; z-index: 1; width: 60px; background-image: url(https://68.media.tumblr.com/f25e73a39b8c137994c2d7d4401e28a8/tumblr_ojhlspeb4S1sfie3io1_1280.jpg), repeating-linear-gradient(to bottom, #777, #777); background-size: 700px; background-position: 560px; background-blend-mode: multiply;
}
.book, .spine, .backface { transform-origin: left;
}
.book { animation: book-animation 2s infinite alternate;
}
@keyframes book-animation { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(45deg); }
}
.backface { animation: backface-animation 2s infinite alternate;
}
@keyframes backface-animation { 0% { transform: rotateY(0deg) translateZ(-60px); } 100% { transform: rotateY(45deg) translateZ(-60px); }
}
.spine { animation: spine-animation 2s infinite alternate;
}
@keyframes spine-animation { 0% { transform: rotateY(-270deg); } 100% { transform: rotateY(-225deg); }
}
.z-wrapper { animation: z-animation 2s infinite alternate;
}
@keyframes z-animation { 0% { transform: rotateZ(0deg); } 100% { transform: rotateZ(-7deg); }
}
Developer | Andy Vanee |
Username | andyvanee |
Uploaded | September 21, 2022 |
Rating | 3 |
Size | 3,293 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 |
Historical Data With Mouseover | 6,003 Kb |
Basic Flexbox | 2,451 Kb |
Table with Fixed Header | 4,293 Kb |
MaybeOn | 3,129 Kb |
Harmoniclock Spiro | 2,799 Kb |
Harmoniclock | 2,966 Kb |
Css bullets | 1,618 Kb |
Some perspective | 3,812 Kb |
Lazerbeamz | 2,891 Kb |
Historical Data | 6,472 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 |
Lecture 1 | Law | 0 Kb |
Bootstrap Carousel Fade Transition | Rowno | 2,484 Kb |
Animated Vertical CSS3 Menu Black | MaCeLMp4 | 2,750 Kb |
Algorithm practice | Abensur | 5,620 Kb |
12 DAYS OF XMAS | Proto78 | 2,313 Kb |
Experiments with Vertical Centering | KatieK2 | 3,924 Kb |
Drag and Drop Quiz | Cgspicer | 3,837 Kb |
Simple CSS loader. | Cabrera | 2,574 Kb |
Firefox Breakout Guide | Quincysoeliman | 2,576 Kb |
Zeichensatz | Moklick | 2,058 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!