原生js实现三维倒影卡片式幻灯片效果代码
代码语言:html
所属分类:幻灯片
代码描述:原生js实现三维倒影卡片式幻灯片效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
/*
* Layout
*/
html, body {
position: relative;
padding: 0;
margin: 0;
overflow: hidden;
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #333 ), color-stop(100%,black));
background: -webkit-radial-gradient(center, ellipse cover, #333 0%, black 100%);
height: 100%;
width: 100%;
text-align: center;
font-family: sans-serif;
}
/*
* Coverflow
*/
#coverflow {
height: 100%;
width: 100%;
-webkit-perspective: 600px;
}
#coverflow section {
display: position;
position: absolute;
top: 50%;
left: 50%;
width: 170px;
height: 170px;
margin-left: -90px;
margin-top: -90px;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0