jquery实现三维书本翻页交互动画效果代码
代码语言:html
所属分类:动画
代码描述:jquery实现三维书本翻页交互动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D Book Showcase</title>
<style>
/* General Demo Style */
@font-face {
font-family: 'the_godfatherregular';
src: url('../fonts/thegodfather-v2-webfont.eot');
src: url('../fonts/thegodfather-v2-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/thegodfather-v2-webfont.woff') format('woff'),
url('../fonts/thegodfather-v2-webfont.ttf') format('truetype'),
url('../fonts/thegodfather-v2-webfont.svg#the_godfatherregular') format('svg');
font-weight: normal;
font-style: normal;
}
html { height: 100%; }
*,
*:after,
*:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
margin: 0;
}
/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1;
}
body {
font-family: 'Lato', Calibri, Arial, sans-serif;
background: #f6f6f6;
font-weight: 400;
font-size: 15px;
color: #333;
overflow: scroll;
overflow-x: hidden;
}
.demo-2 body {
background: url(../images/wood.jpg);
}
a {
color: #555;
text-decoration: none;
}
.container {
width: 100%;
position: relative;
}
.main,
.container > header {
width: 90%;
max-width: 1060px;
margin: 0 auto;
position: relative;
padding: 0 30px 50px 30px;
}
.container > header {
padding: 30px 30px 40px 30px;
}
.container > header h1 {
font-size: 34px;
line-height: 38px;
margin: 0;
font-weight: 700;
color: #333;
float: left;
}
/* Header Style */
.codrops-top {
line-height: 24px;
font-size: 11px;
background: #fff;
background: rgba(255, 255, 255, 0.5);
text-transform: uppercase;
z-index: 9999;
position: relative;
box-shadow: 1px 0px 2px rgba(0,0,0,0.2);
}
.codrops-top a {
padding: 0px 10px;
letter-spacing: 1px;
color: #333;
display: inline-block;
}
.codrops-top a:hover {
background: rgba(255,255,255,0.8);
color: #000;
}
.codrops-top span.right {
float: right;
}
.codrops-top span.right a {
float: left;
display: block;
}
/* Demo Buttons Style */
.codrops-demos {
float: right;
}
.codrops-demos a {
display: inline-block;
margin: 10px;
color: #666;
font-weight: 700;
line-height: 30px;
border-bottom: 4px solid transparent;
}
.codrops-demos a:hover {
color: #000;
border-color: #000;
}
.codrops-demos a.current-demo,
.codrops-demos a.current-demo:hover {
color: #aaa;
border-color: #aaa;
}
.support-note {
color: #d7823e;
font-size: 16px;
display: block;
font-weight: bold;
text-align: center;
padding: 5px 0;
text-align: left;
clear: both;
}
.bookshelf {
width: 100%;
height: 63px;
z-index: -1;
margin-top: -25px;
background: transparent url(../images/shelf.png) no-repeat center center;
position: relative;
}
.bk-list {
list-style: none;
position: relative;
}
.bk-list li {
position: relative;
width: 300px;
float: left;
z-index: 1;
margin: 0px 50px 40px 0;
-webkit-perspective: 1800px;
-moz-perspective: 1800px;
perspective: 1800px;
}
.bk-list li:last-child {
margin-right: 0;
}
.bk-info {
position: relative;
margin-top: 440px;
}
.bk-info h3 {
padding: 25px 0 10px;
margin-bottom: 20px;
border-bottom: 1px solid rgba(0,0,0,0.3);
font-size: 26px;
}
.bk-info h3 span:first-child {
font-size: 14px;
font-weight: 400;
text-transform: uppercase;
padding-bottom: 5px;
display: block;
color: #777;
}
.bk-info p {
line-height: 24px;
color: #444;
min-height: 160px;
}
.bk-info button {
background: #FC756F;
border: none;
color: #fff;
display: inline-block;
padding: 3px 15px;
font-weight: 700;
font-size: 14px;
text-transform: uppercase;
cursor: pointer;
margin-right: 4px;
box-shadow: 1px 1px 1px rgba(0,0,0,0.15);
}
.bk-info button.bk-active,
.bk-info button:active {
box-shadow:
0 1px 0 rgba(255, 255, 255, 0.8),
inset 0 -1px 1px rgba(0,0,0,0.2);
}
.no-touch .bk-info button:hover,
.bk-info button.bk-active {
.........完整代码请登录后点击上方下载按钮下载查看
网友评论0