午夜大片爽爽爽免费影院丨色综合色综合久久综合频道88丨日韩人妻无码中文字幕视频丨一本无码久本草在线中文字幕dvd丨国产午夜亚洲精品国产成人

CSS 3D 基礎知識

2017/2/11 8:32:47   閱讀:1745    發布者:1745

css3d 總結

3d transform (3D變形)(rotate skew scale translate)

基礎知識

perspective (視距,景深) perspective-origin (視點)
transfrom

(1) 坐標 x y z

(2) 變形 基點位置 transform-origin
(3)transfrom-style:preserve-3d

3D旋轉圖片相冊

3d transform (3D變形)(rotate skew scale translate)

基礎知識

perspective (視距,景深) perspective-origin (視點)
transfrom

(1) 坐標 x y z

(2) 變形 基點位置 transform-origin
(3)transfrom-style:preserve-3d

3D旋轉圖片相冊


它就用到了一個比較簡單的坐標y 軸旋轉那咱們看一下他的代碼

html的代碼:
	

首先要建九個盒子放九張圖片,這個很容易理解的。

css的代碼
body{ background: #6daf39;(背景加了個顏色 主要是好看) } .xj{ perspective:600px;(這是井深) } .kj{ transition: 1s;(運動時間) transform-style:preserve-3d;(實現3d效果 當然這是非常重的) width:200px; height: 300px; margin:80px auto; position: relative; transform: rotateY(0deg) rotateX(0deg) translateZ(-275px); transform-origin: center center -275px; } .mian{ position:absolute; font-size: 50px; color:#fff; text-align: center; line-height: 300px; } .mian:nth-child(1){ width:200px; height: 300px; background: #ff2223; transform: rotateY(0deg)translateZ(275px); } .mian:nth-child(2){ width:200px; height: 300px; background: #ff2223; transform: rotateY(40deg)translateZ(275px); } .mian:nth-child(3){ width:200px; height: 300px; background: #ff2223; transform: rotateY(80deg)translateZ(275px); } .mian:nth-child(4){ width:200px; height: 300px; background: #ff2223; transform: rotateY(120deg)translateZ(275px); } .mian:nth-child(5){ width:200px; height: 300px; background: #ff2223; transform: rotateY(160deg)translateZ(275px); } .mian:nth-child(6){ width:200px; height: 300px; background: #ff2223; transform: rotateY(200deg)translateZ(275px); } .mian:nth-child(7){ width:200px; height: 300px; background: #ff2223; transform: rotateY(240deg)translateZ(275px); } .mian:nth-child(8){ width:200px; height: 300px; background: #ff2223; transform: rotateY(280deg)translateZ(275px); } .mian:nth-child(9){ width:200px; height: 300px; background: #ff2223; transform: rotateY(320deg)translateZ(275px); }

css就到這里,很簡單的;

js的代碼
kj.onclick=function () { 
      cishu++; 
      var jiaodu=40*cishu; 


      kj.style.transform="rotateY("+jiaodu+"deg)translateZ(-275px)" 
    }

(kj)就是3d空間,點擊kj要是一種效果,就要有一種方法或步驟;
3d空間樣式rotateY(這就是上下軸旋轉)translateZ(Z這就是3d立體字軸;
讓3d空間后移275px找到軸心位置)

完畢 希望大家看到這篇文章后能夠學到知識。



主站蜘蛛池模板: 国产又a又黄又潮娇喘视频| 免费国产污网站在线观看不要卡| 超碰人人超碰人人| 亚洲一区二区色情苍井空| 欧美xxxxx精品| 亚洲国产激情五月色丁香小说| 大学生久久香蕉国产线看观看| 最新无码人妻在线不卡| 国产精品毛片一区二区| 内射毛片内射国产夫妻| 国产精品熟妇视频国产偷人 | 日本爽爽爽爽爽爽在线观看免| 国产成人片无码免费视频软件 | 亚欧洲精品在线视频免费观看| ā片在线观看免费观看| 亚洲成av人片一区二区密柚| 天天影视网色香欲综合网| 天堂8在线天堂资源bt| 免费无码午夜福利片| 99久久人妻无码精品系列| 亚洲乱码日产精品b| 国产极品美女高潮抽搐免费网站| 中文成人久久久久影院免费观看| 欧美精品一区二区蜜臀亚洲| 国产精品青青青高清在线| 秋霞无码一区二区| 少妇高潮无套内谢麻豆传| 在线高清免费不卡全码| 最新色国产精品精品视频| 日本人妻精品免费视频| 国产免费内射又粗又爽密桃视频| 国产成人无码18禁午夜福利p| 日产国产精品亚洲系列| 门国产乱子视频观看| 无遮挡男女激烈动态图| 色老板精品无码免费视频| 国产精品毛片一区二区| 欧洲国产精品无码专区影院| 97午夜理论片影院在线播放| 国产无套抽出白浆来| 国产一区二区三区四区五区加勒比 |