1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > css3 3d旋转兼容模式下 前端CSS3: 3D旋转的问题 (请水神和毒舌放过)

css3 3d旋转兼容模式下 前端CSS3: 3D旋转的问题 (请水神和毒舌放过)

时间:2019-11-13 01:51:39

相关推荐

css3 3d旋转兼容模式下 前端CSS3: 3D旋转的问题 (请水神和毒舌放过)

[HTML] 纯文本查看 复制代码

Document

body {

perspective: 500px;

}

.box {

position: relative;

width: 300px;

height: 300px;

margin: 100px auto;

transform-style: preserve-3d;

transition: all .6s;

}

.front,

.back {

position: absolute;

top: 0;

left: 0;

width: 100%;

height: 100%;

border-radius: 50%;

text-align: center;

line-height: 300px;

font-size: 30px;

color: #fff;

}

.front {

background-color: pink;

z-index: 1;

}

.back {

background-color: purple;

/* transform: rotateY(180deg); */

}

.box:hover{

transform: rotateY(180deg);

}

hello worldI'm here.

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。