日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > CSS >内容正文

CSS

html 图片展示 3d,CSS3 3D图像显示

發(fā)布時間:2024/1/23 CSS 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 html 图片展示 3d,CSS3 3D图像显示 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

CSS

語言:

CSSSCSS

確定

/*custom font - Montserrat*/

@import url(http://fonts.googleapis.com/css?family=Montserrat);

/*basic reset*/

* {

margin: 0;

padding: 0;

}

/*forcing the body to take 100% height*/

html,

body {

min-height: 100%;

}

/*a nice BG*/

body {

background: #544;

/*fallback*/

background: linear-gradient(#544, #565);

}

/*Thumbnail Background*/

.thumb {

width: 400px;

height: 300px;

margin: 70px auto;

perspective: 1000px;

}

.thumb a {

display: block;

width: 100%;

height: 100%;

/*double layered BG for lighting effect*/

background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("http://thecodeplayer.com/u/m/i1.png");

/*disabling the translucent black bg on the main image*/

background-size: 0, cover;

/*3d space for children*/

transform-style: preserve-3d;

transition: all 0.5s;

}

.thumb:hover a {

transform: rotateX(80deg);

transform-origin: bottom;

}

/*bottom surface */

.thumb a:after {

/*36px high element positioned at the bottom of the image*/

content: '';

position: absolute;

left: 0;

bottom: 0;

width: 100%;

height: 36px;

/*inherit the main BG*/

background: inherit;

background-size: cover, cover;

/*draw the BG bottom up*/

background-position: bottom;

/*rotate the surface 90deg on the bottom axis*/

transform: rotateX(90deg);

transform-origin: bottom;

}

/*label style*/

.thumb a span {

color: white;

text-transform: uppercase;

position: absolute;

top: 100%;

left: 0;

width: 100%;

font: bold 12px/36px Montserrat;

text-align: center;

/*the rotation is a bit less than the bottom surface to avoid flickering*/

transform: rotateX(-89.99deg);

transform-origin: top;

z-index: 1;

}

/*shadow*/

.thumb a:before {

content: '';

position: absolute;

top: 0;

left: 0;

width: 100%;

height: 100%;

background: rgba(0, 0, 0, 0.5);

box-shadow: 0 0 100px 50px rgba(0, 0, 0, 0.5);

transition: all 0.5s;

/*by default the shadow will be almost flat, very transparent, scaled down with a large blur*/

opacity: 0.15;

transform: rotateX(95deg) translateZ(-80px) scale(0.75);

transform-origin: bottom;

}

.thumb:hover a:before {

opacity: 1;

/*blurred effect using box shadow as filter: blur is not supported in all browsers*/

box-shadow: 0 0 25px 25px rgba(0, 0, 0, 0.5);

/*pushing the shadow down and scaling it down to size*/

transform: rotateX(0) translateZ(-60px) scale(0.85);

}

總結

以上是生活随笔為你收集整理的html 图片展示 3d,CSS3 3D图像显示的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。