remove table
This commit is contained in:
parent
b00b2712c3
commit
52cf5f024d
24
index.html
24
index.html
@ -16,24 +16,18 @@
|
|||||||
height: 400px;
|
height: 400px;
|
||||||
margin:20px auto 0 auto;
|
margin:20px auto 0 auto;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
}
|
|
||||||
.Table
|
|
||||||
{
|
|
||||||
height:100%;
|
|
||||||
transform:rotateY(-70deg);
|
|
||||||
transform-style: preserve-3d;
|
|
||||||
transition: transform 1s;
|
transition: transform 1s;
|
||||||
}
|
}
|
||||||
.Table[show="cover"]{ transform:rotateY(-70deg); }
|
.Shot[show="cover"]{ transform: perspective(1000px) rotateY(-70deg); }
|
||||||
.Table[show="spine"]{ transform:rotateY(-10deg); }
|
.Shot[show="spine"]{ transform: perspective(1000px) rotateY(-10deg); }
|
||||||
.Table[show="back" ]{ transform:rotateY(-235deg); }
|
.Shot[show="back" ]{ transform: perspective(1000px) rotateY(-235deg); }
|
||||||
.Table[show="pages"]{ transform:rotateY(-180deg); }
|
.Shot[show="pages"]{ transform: perspective(1000px) rotateY(-180deg); }
|
||||||
|
|
||||||
|
|
||||||
.Book
|
.Book
|
||||||
{
|
{
|
||||||
height:100%;
|
height:100%;
|
||||||
transform-style: preserve-3d;
|
transform-style: preserve-3d;
|
||||||
|
transform: translateZ(100px);
|
||||||
position: relative;
|
position: relative;
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
}
|
}
|
||||||
@ -112,8 +106,8 @@ background-image: conic-gradient(from 0deg at 0% 0%, #00000000 33%, #000000FF 75
|
|||||||
}
|
}
|
||||||
.Shadow::after
|
.Shadow::after
|
||||||
{
|
{
|
||||||
transform: rotateX(90deg) translateY(-80px) translateZ(12px);
|
transform: rotateX(90deg) translateY(-100px) translateZ(12px);
|
||||||
box-shadow: 0px 80px 60px black, 0px 80px 20px black;
|
box-shadow: 0px 100px 60px black, 0px 100px 20px black;
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
@ -125,7 +119,6 @@ background-image: conic-gradient(from 0deg at 0% 0%, #00000000 33%, #000000FF 75
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="Shot">
|
<div class="Shot">
|
||||||
<div class="Table" show="cover">
|
|
||||||
<div class="Book">
|
<div class="Book">
|
||||||
<img style="display:block; height:100%; width:auto;" src="http://placekitten.com/20/200"/>
|
<img style="display:block; height:100%; width:auto;" src="http://placekitten.com/20/200"/>
|
||||||
<div class="Spine Shadow">
|
<div class="Spine Shadow">
|
||||||
@ -147,7 +140,6 @@ background-image: conic-gradient(from 0deg at 0% 0%, #00000000 33%, #000000FF 75
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<button onclick="bookPose('cover'); bookClose();">Cover</button>
|
<button onclick="bookPose('cover'); bookClose();">Cover</button>
|
||||||
@ -163,7 +155,7 @@ background-image: conic-gradient(from 0deg at 0% 0%, #00000000 33%, #000000FF 75
|
|||||||
<script>
|
<script>
|
||||||
let $ = query => Array.from(document.querySelectorAll(query));
|
let $ = query => Array.from(document.querySelectorAll(query));
|
||||||
let pages = $("[swing]");
|
let pages = $("[swing]");
|
||||||
let table = $(".Table")[0];
|
let table = $(".Shot")[0];
|
||||||
let bookOpen = index =>
|
let bookOpen = index =>
|
||||||
{
|
{
|
||||||
pages.forEach((p, i)=> p.setAttribute("swing", i>index ? "right" : "left") );
|
pages.forEach((p, i)=> p.setAttribute("swing", i>index ? "right" : "left") );
|
||||||
|
Loading…
Reference in New Issue
Block a user