天天育儿网,内容丰富有趣,生活中的好帮手!
天天育儿网 > html5旋转木马效果 js实现旋转木马效果

html5旋转木马效果 js实现旋转木马效果

时间:2022-01-12 13:46:40

相关推荐

html5旋转木马效果 js实现旋转木马效果

CSS3 3D transforms-旋转木马

.container {

width: 210px;

height: 140px;

position: relative;

margin: 50px auto 40px;

border: 1px solid #CCC;

-webkit-perspective: 1100px;

-moz-perspective: 1100px;

-o-perspective: 1100px;

perspective: 1100px;

}

#carousel {

width: 100%;

height: 100%;

position: absolute;

-webkit-transform-style: preserve-3d;

-moz-transform-style: preserve-3d;

-o-transform-style: preserve-3d;

transform-style: preserve-3d;

}

.ready #carousel {

-webkit-transition: -webkit-transform 1s;

-moz-transition: -moz-transform 1s;

-o-transition: -o-transform 1s;

transition: transform 1s;

}

#carousel.panels-backface-invisible figure {

-webkit-backface-visibility: hidden;

-moz-backface-visibility: hidden;

-o-backface-visibility: hidden;

backface-visibility: hidden;

}

#carousel figure {

display: block;

position: absolute;

width: 186px;

height: 116px;

left: 10px;

top: 10px;

border: 2px solid black;

line-height: 116px;

font-size: 80px;

font-weight: bold;

color: white;

text-align: center;

}

.ready #carousel figure {

-webkit-transition: opacity 1s, -webkit-transform 1s;

-moz-transition: opacity 1s, -moz-transform 1s;

-o-transition: opacity 1s, -o-transform 1s;

transition: opacity 1s, transform 1s;

}

#options{

margin-top: 200px;

width: 100%;

text-align: center;

}

#options button{padding: 0.5em 1.5em;border: 2px solid #6699cc;background: #fff;}

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

个数

上一页

下一页

横竖切换

背面可见切换

如果觉得《html5旋转木马效果 js实现旋转木马效果》对你有帮助,请点赞、收藏,并留下你的观点哦!

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