Diễn Đàn Hỗ Trợ FM
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.


[Code] HTML + CSS tạo quyển sách (HTML BOOK)

Tác giả: - vào lúc:
blogger
Bài viết : 88
Points : 236
Like : 36
blogger
An toàn
bloggerMEM LV2
9/28/2016, 09:10
#1

HTML + CSS tạo quyển sách


[Code] HTML + CSS tạo quyển sách (HTML BOOK) Uybetoe

Thích hợp cho những website làm truyện tranh hoặc phim. đây chỉ là html+css thôi các bạn tự tùy biến cho phù hợp với web của mình. ví dụ như làm avatar forum chẳng hạn. hoặc chuyên mục này. trang chủ này .... vân vân :)

Code:

<div class="bohotrofm">
    <div class="block-image">
        <div class="bk-left"><span class="namehotrofm">Nguyễn Khánh Linh</span>
        </div>
        <div class="thumb">
            <a href="http://www.hotrofm.net/u59" style="background:url(http://i.imgur.com/BotOpml.jpg) no-repeat center center;background-size:cover"></a>
        </div>
    </div>
</div>

<style>
.bohotrofm{padding:20px;}
.block-image {
position:relative;
float: none;
margin: 0 auto;
clear: both;
height: 250px;
width: 215px;
max-width: 100%;
object-fit: cover;
-webkit-perspective:600px;
-moz-perspective:600px;
perspective:600px;
}
.block-image .thumb {
width: 100%;
height: 250px;
object-fit: cover;
position: relative;
display: block;
}
.block-image a {
width: 100%;
height: 250px;
object-fit: cover;
display: block;
border-radius: 5px;
transition: all .3s ease-out!important;
-webkit-transition: all .3s ease-out!important;
-moz-transition: all .3s ease-out!important;
-o-transition: all .3s ease-out!important;
}
.block-image a {
box-shadow: 10px 10px 30px rgba(0,0,0,0.3);
}

.block-image a:before {
content: "TEXT";
font-family: FontAwesome;
line-height: 32px;
width: 32px;
height: 32px;
font-size: 18px;
color: #fff;
text-align: center;
font-weight: 400;
position: absolute;
top: 45%;
left: 45%;
opacity:0;
padding: 0;
z-index:1;
border: 2px solid #fff;
border-radius: 50%;
transition: all 0.25s ease-in-out 0s;
}
.block-image a:after {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
height: 100%;
width: 100%;
left: 0;
background:#d86843;
opacity: 0;
visibility: hidden;
transition: all 0.25s ease-in-out 0s;
}
.block-image:hover.block-image .thumb {
-webkit-transform: rotateY(45deg);
-moz-transform: rotateY(45deg);
-o-transform: rotateY(45deg);
transform: rotateY(45deg);
}
.bk-left {
display: block;
overflow: hidden;
top: 7px;
height: 95%;
-webkit-transform: rotate3d(0,1,0,-90deg);
transform: rotate3d(0,1,0,-90deg);
position: absolute!important;
width: 40px;
left: -11px;
background-color: #222;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.bk-left .namehotrofm {
    font-size: 20px;
    line-height: 40px;
    padding-right: 10px;
    text-align: center;
    position: absolute;
    top: 10%;
    bottom: auto;
    height: 40px;
    -webkit-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: rotate(90deg) translateY(-40px);
    color: #fff;
    transform: rotate(90deg) translateY(-40px);
    margin: 0;
    padding: 0;
    min-width: 250px;
}
.block-image:hover .bk-left {
-webkit-transform: rotateY(-45deg);
-o-transform: rotateY(45deg);
transform: rotateY(-45deg);
top: -15px;
height: 112%;
}
.block-image:hover.block-image a:after {
opacity: 0.8;
visibility:visible;
}
.block-image:hover.block-image a:before {
opacity: 1;
visibility:visible;
-ms-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
</style>