css实现苹果iphone手机充电指示指引引导动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现苹果iphone手机充电指示指引引导动画效果代码
代码标签: css 苹果 iphone 手机 充电 指示 指引 引导 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url('https://fonts.googleapis.com/css?family=Spartan&display=swap');
body{
font-family: 'Spartan';
font-weight: 100 !important;
overflow: hidden;
margin: 0;
background-color: #3f51b5;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.container{
width: 100vw;
height: 100vh;
display: table-cell;
vertical-align: middle;
text-align: center;
}
.device{
width: 220px;
height: 450px;
background-color: #F5F6F8;
border: 4px solid #D0D2D1;
margin: auto;
border-radius: 32px;
position: relative;
padding: 15px;
transition: all .5s;
}
.screen{
width: 100%;
position: relative;
z-index: 2;
}
.top-screen{
height: 45px;
}
.camera{
width: 10px;
height: 10px;
border-radius: 50%;
margin: auto;
background: #ffffff;
background: -moz-linear-gradient(-45deg, #ffffff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%);
background: -webkit-linear-gradient(-45deg, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
background: linear-gradient(135deg, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=1 );
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
border: .1vw solid #929292;
display: block;
margin-bottom: 5px;
}
.microphone{
width: 8px;
height: 8px;
border-radius: 50%;
margin: auto;
background: #ffffff;
background: -moz-linear-gradient(-45deg, #ffffff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%);
background: -webkit-linear-gradient(-45deg, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
background: linear-gradient(135deg, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=1 );
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
border: 1px solid #929292;
display: inline-block;
}
.microphone-bar{
width: 60px;
height: 8px;
border-radius: 5px;
margin: auto;
background: #ffffff;
background: -moz-linear-gradient(-45deg, #ffffff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%);
background: -webkit-linear-gradient(-45deg, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
background: linear-gradient(135deg, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=1 );
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
border: 1px solid #929292;
display: inline-block;
}
.middle-screen{
position: relative;
overflow: hidden;
height: 350px;
width: 220px;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
border: 2px solid #929292;
border-radius: 3px;
background-color: #252525;
overflow-y: auto;
text-align: left;
padding: 40px;
display: table-cell;
vertical-align: middle;
}
.interieur{
height: calc(100% - 38px);
}
.bottom-screen > button{
padding: 18px;
border-radius: 50%;
outline: none;
background: #ffffff;
background: -moz-linear-gradient(-45deg, #ffffff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%);
background: -webkit-linear-gradient(-45deg, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
background: linear-g.........完整代码请登录后点击上方下载按钮下载查看
网友评论0