3D Bookshelf
How do I make an 3d bookshelf?
Covers from: http://www.nytimes.com/slideshow/2012/12/19/books/20favorite-book-covers-10.htmlWood texture from:. What is a 3d bookshelf? How do you make a 3d bookshelf? This script and codes were developed by Chris Coyier on 29 January 2023, Sunday.
3D Bookshelf - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>3D Bookshelf</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="books"> <img src="https://graphics8.nytimes.com/images/2012/12/19/books/20favorite-book-covers-slide-ORTM/20favorite-book-covers-slide-ORTM-slide.jpg"> <img src="https://graphics8.nytimes.com/images/2012/12/19/books/20favorite-book-covers-slide-DQPY/20favorite-book-covers-slide-DQPY-slide.jpg"> <img src="https://graphics8.nytimes.com/images/2012/12/19/books/20favorite-book-covers-slide-QNUF/20favorite-book-covers-slide-QNUF-slide.jpg"> <img src="https://graphics8.nytimes.com/images/2012/12/19/books/20favorite-book-covers-slide-U60O/20favorite-book-covers-slide-U60O-slide.jpg"> <div class="shelf"></div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
3D Bookshelf - Script Codes CSS Codes
.books { padding: 30px 0; text-align: center;
}
.books img { display: inline-block; position: relative; z-index: 1; width: 100px; margin: 0 10px; -moz-transform: perspective(500px) rotateY(22deg); -ms-transform: perspective(500px) rotateY(22deg); -webkit-transform: perspective(500px) rotateY(22deg); transform: perspective(500px) rotateY(22deg); -moz-transition: all 0.2s ease; -o-transition: all 0.2s ease; -webkit-transition: all 0.2s ease; transition: all 0.2s ease; box-shadow: -2px 0 -1px black, -4px 0 -2px black, -6px 0 -3px black, -8px 0 -4px black, -10px 0 -5px black;
}
.books img:hover { -moz-transform: perspective(500px) rotateY(0deg); -ms-transform: perspective(500px) rotateY(0deg); -webkit-transform: perspective(500px) rotateY(0deg); transform: perspective(500px) rotateY(0deg); box-shadow: none;
}
.shelf { height: 100px; margin: -50px auto 0; -moz-transform: perspective(10px) rotateX(20deg); -ms-transform: perspective(10px) rotateX(20deg); -webkit-transform: perspective(10px) rotateX(20deg); transform: perspective(10px) rotateX(20deg); background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjIiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMC4wIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkKSIgLz48L3N2Zz4g'), url(http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/[email protected]); background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(0, 0, 0, 0.2)), color-stop(100%, rgba(0, 0, 0, 0))), url(http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/[email protected]); background: -moz-linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)), url(http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/[email protected]); background: -webkit-linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)), url(http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/[email protected]); background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)), url(http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/[email protected]); background-size: 100%, 512px;
}
body { background: url(http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/[email protected]); background-size: 512px; overflow: hidden;
}
Developer | Chris Coyier |
Username | chriscoyier |
Uploaded | January 29, 2023 |
Rating | 4 |
Size | 3,081 Kb |
Views | 12,144 |
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 |
Simple Flexbox Responsive Nav | 2,818 Kb |
Automatic Table of Contents | 2,869 Kb |
Slider like Yahoo Weather App | 3,489 Kb |
Glowing Blue Inputs | 2,475 Kb |
Bar Navigation with Flexbox and SVG icons | 5,995 Kb |
Basic Example of SVG Line Drawing, Backward and Forward | 2,051 Kb |
Infinite Slideshow | 1,724 Kb |
SVG Filters on HTML5 Video | 2,764 Kb |
Airtable Emoji Poll | 3,194 Kb |
Search Box in Content Moves to Fixed Header | 2,768 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 |
Css3 only dropdown menu | Riogrande | 2,519 Kb |
Classy Blockquote Styling | Andrewwright | 3,212 Kb |
Pomodoro Timer | Sdas13 | 2,900 Kb |
Collapsing Widget | Er40 | 4,279 Kb |
Pagepilling.js | Blossk | 6,554 Kb |
Material design buttons | Fischaela | 4,381 Kb |
Ripples in water | Nobitagit | 2,704 Kb |
Coburg Banks SVG Logo | Mjtweaver | 3,875 Kb |
3D flipping card | Ssaakkaa | 2,238 Kb |
Clock with full screen background | Owebboy | 2,415 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!