3D BOOK SHOWCASE
An experiment about a realistic looking book showcase with some interactivity using CSS 3D transforms.
[button href=”https://williamtuckdickson.com/wp-content/uploads/projects/3DBookShowcase/index.html”] VIEW DEMO [/button] [button href=”https://williamtuckdickson.com/wp-content/uploads/projects/ItemSlider/3DBookShowcase.zip”] DOWNLOAD SOURCE [/button]
Today we want to share an experimental book showcase concept with you. The idea is to make books look more realistic by using 3D transforms and apply some fun effects to them, like rotating, flipping and opening. This might be an interesting concept for online book stores as it adds some interactivity the user might find entertaining. The idea is taken from Lift Interactive (scroll down to see the book style).
Note that this only works in browsers that support CSS 3D transforms. For other browsers, we simply show the book cover.
The demos are best viewed in WebKit browsers.
What we did was to build a structure that we can transform into a 3D object with CSS 3D transforms. Our book has six main sides and one inner page element that we’ll use to paginate through some content, simulating something like a “view inside” functionality. We could have used the BookBlock jQuery plugin for flipping through the pages but we didn’t want to overload it with too many effects.
A book is build up as follows:
Anthony Burghiss
A Catwork Orange
Red snapper Kafue pike fangtooth humums slipmouth, salmon cutlassfish; swallower European perch mola mola sunfish, threadfin bream. Billfish hog sucker trout-perch lenok orbicular velvetfish. Delta smelt striped bass, medusafish dragon goby starry flounder cuchia round whitefish northern anchovy spadefish merluccid hake cat shark Black pickerel. Pacific cod.
In this nightmare vision of cats in revolt, fifteen-year-old Alex and his friends set out on a diabolical orgy of robbery, rape, torture and murder. Alex is jailed for his teenage delinquency and the State tries to reform him - but at what cost?
Anthony Burghiss
A Catwork Orange
The class names are based on the sides of a book when holding it and looking at the front, the cover. Since we want to open the book cover, we need to give the front a main cover side and a back side. The back of the book will also contain some content which will be visible when flipping the book.
When hovering over a book, we will rotate it slightly.
Specifically, we rotate the whole book 35 degrees on the Y-axis:
.bk-list li .bk-book.bk-bookdefault:hover {
transform: rotate3d(0,1,0,35deg);
}
When opening the book by clicking on “View inside”, the front part will flip open and we can navigate through the preview pages by clicking on the arrows.
The rotations and flipping are done by applying certain classes:
/* Transform classes */
.bk-list li .bk-viewinside .bk-front {
transform: translate3d(0,0,20px) rotate3d(0,1,0,-160deg);
}
.bk-list li .bk-book.bk-viewinside {
transform: translate3d(0,0,150px) rotate3d(0,1,0,0deg);
}
.bk-list li .bk-book.bk-viewback {
transform: translate3d(0,0,0px) rotate3d(0,1,0,180deg);
}
In the second demo, we rotate the book so that we can only see the spine, the left side. On hover we simulate the familiar movement of taking a quick look of a book by slightly moving it towards us and rotating it. When clicking on it we will open it.
A second click on the book will close it again and put it back into the shelf.
Note that this is really just a concept and highly experimental. It’s probably very buggy and has much room for improvement. But anyway, we hope you enjoyed this experiment and find it inspiring!
[button href=”https://williamtuckdickson.com/wp-content/uploads/projects/3DBookShowcase/index.html”] VIEW DEMO [/button] [button href=”https://williamtuckdickson.com/wp-content/uploads/projects/ItemSlider/3DBookShowcase.zip”] DOWNLOAD SOURCE [/button]