More Perspective

Developer
Size
3,293 Kb
Views
20,240

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 Previews

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); }
}
More Perspective - Script Codes
More Perspective - Script Codes
Home Page Home
Developer Andy Vanee
Username andyvanee
Uploaded September 21, 2022
Rating 3
Size 3,293 Kb
Views 20,240
Do you need developer help for More Perspective?

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!

Andy Vanee (andyvanee) Script Codes
Create amazing love letters 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!