div+css实现一个逼真相机效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现一个逼真相机效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
box-sizing: border-box;
}
body {
font-size: 10px;
background-repeat: no-repeat;
background-size: 700px;
background-position: 50% -9.2%;
}
.snaptouch {
font-size: 1.5vmin;
width: 76em;
height: 56em;
position: absolute;
top: 49%;
left: 50%;
transform: translate(-50%, -50%);
background: linear-gradient(teal 49%, yellow 51%) 50% 100%/15em 15em;
background-repeat: no-repeat;
}
.snaptouch .logo {
font-family: calibri;
color: #DEDAD9;
position: absolute;
border: 1px solid hotpink;
}
.snaptouch .button {
border: 1px solid orange;
width: 9em;
height: 5em;
border-top-left-radius: 3em;
border-top-right-radius: 3em;
position: absolute;
top: 11%;
left: 8%;
background: #FF7476;
box-shadow: inset rgba(0, 0, 0, 0.15) 0px 0px 0px 0.25em;
}
.snaptouch .flash {
width: 21em;
height: 7.5em;
border-top-left-radius: 1.5em;
border-t.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0