模拟mac苹果电脑图片墙切换效果
代码语言:html
所属分类:幻灯片
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS3 Cover Flow</title>
<style>
html,
body {
margin: 0px;
padding: 0px;
}
body {
background: #222;
margin-top: 200px;
}
.coverflow {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
width: 800px;
position: absolute;
top: 50%;
left: 50%;
margin-top: -140px;
margin-left: -400px;
}
.wrapper {
width: 800px;
overflow: hidden;
white-space: nowrap;
padding-top: 40px;
position: absolute;
height: 230px;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
-o-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-perspective: 400px;
-moz-perspective: 400px;
-ms-perspective: 400px;
-o-perspective: 400px;
perspective: 400px;
-webkit-perspective-origin: 50% 50%;
-moz-perspective-origin: 50% 50%;
-ms-perspective-origin: 50% 50%;
-o-perspective-origin: 50% 50%;
perspective-origin: 50% 50%;
background-image: -webkit-linear-gradient(#414455 0% ,#000 40% ,#181818 75%);
background-image: -moz-linear-gradient(#414455 0% ,#000 40% ,#181818 75%);
background-image: -ms-linear-gradient(#414455 0% ,#000 40% ,#181818 75%);
background-image: -o-linear-gradient(#414455 0% ,#000 40% ,#181818 75%);
background-image: linear-gradient(#414455 0% ,#000 40% ,#181818 75%);
border: 1px solid #000;
}
.wrapper ul {
height: 220px;
position: relative;
}
.wrapper li:first-child {
margin-left: 325px;
}
.wrap.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0