css+div实现手机导航app软件交互动画ui效果代码

代码语言:html

所属分类:布局界面

代码描述:css+div实现手机导航app软件交互动画ui效果代码

代码标签: css div 手机 导航 app 软件 交互 动画 ui

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
<style>
    @font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxP.ttf) format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfBBc9.ttf) format('truetype');
}
body {
  font-family: 'Roboto', sans-serif;
  font-size: 62.5%;
}
body {
  background: #321e43;
}
input {
  display: none;
}
ul {
  padding: 0;
}
li {
  list-style-type: none;
}
.c-mobile-view {
  position: relative;
  margin: 120px auto 0;
  width: 320px;
  height: 568px;
  background: url("//repo.bfw.wiki/bfwrepo/image/65763c2626807.png");
  background-position: bottom;
  background-size: cover;
  opacity: 0;
  animation-name: animation-fadein;
  animation-duration: 0.5s;
  animation-delay: 0.1s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  -webkit-animation-name: animation-fadein;
  -webkit-animation-duration: 0.5s;
  -webkit-animation-delay: 0.1s;
  -webkit-animation-fill-mode: forwards;
  -webkit-animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  -webkit-box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  -moz-box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  border-radius: 30px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
.c-mobile-view:before {
  position: absolute;
  content: '';
  display: block;
  top: 0;
  width: 100%;
  height: 100%;
  -webkit-box-shadow: inset 0 -1px 3px rgba(255, 255, 255, 0.2);
  -moz-box-shadow: inset 0 -1px 3px rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 -1px 3px rgba(255, 255, 255, 0.2);
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  border-radius: 30px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.c-mobile-view__inner {
  overflow: hidden;
  width: 100%;
  height: 100%;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  border-radius: 30px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
.c-pin {
  position: absolute;
  width: 36px;
  height: 36px;
  top: 120px;
  left: 160px;
  z-index: -1;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  border: solid 4px #5873fe;
  -moz-border: solid 4px #5873fe;
  -webkit-border: solid 4px #5873fe;
  opacity: 0;
  animation-name: animation-fadein-infinite;
  animation-duration: 1.5s;
  animation-timing-function: easy-in-out;
  animation-iteration-count: infinite;
  -webkit-animation-name: animation-fadein-infinite;
  -webkit-animation-duration: 1.5s;
  -webkit-animation-timing-function: easy-in-out;
  -webkit-animation-iteration-count: infinite;
}
.c-button {
  cursor: pointer;
  font-size: 1.2em;
}
.c-mobile__button {
  position: absolute;
  width: 68px;
  height: 68px;
  bottom: -26px;
  line-height: 60px;
  text-align: center;
  z-index: 2;
  color: #FFF;
  border: solid 6px rgba(255, 255, 255, 0.2);
  opacity: 0;
  animation-name: animation-fadein;
  animation-duration: 0.5s;
  animation-delay: 0.4s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  -webkit-animation-name: animation-fadein;
  -webkit-animation-duration: 0.5s;
  -webkit-animation-delay: 0.4s;
  -webkit-animation-fill-mode: forwards;
  -webkit-animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background-color: #5873fe;
  background: -webkit-gradient(linear, left top, right bottom, from(#5873fe), to(#871cde));
  background: -moz-linear-gradient(top, #5873fe, #871cde);
  -webkit-box-shadow: 0 0 10px #404040;
  -moz-box-shadow: 0 0 10px #404040;
  box-shadow: 0 0 10px #404040;
  left: 50%;
  margin-left: -34px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  transition-property: all;
  transition-duration: 0.4s;
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition-delay: 0;
  -webkit-transition-property: all;
  -webkit-transition-duration: 0.4s;
  -webkit-transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  -webkit-transition-delay: 0;
}
.c-mobile__button:hover {
  width: 80px;
  height: 80px;
  line-height: 77px;
  bottom: -26px;
  border: solid 4px rgba(255, 255, 255, 0.2);
  left: 50%;
  margin-left: -40px;
}
.c-mobile__button .c-mobile__button__plus {
  transition-property: all;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition-delay: 0;
  -webkit-transition-property: all;
  -webkit-transition-duration: 0.3s;
  -webk.........完整代码请登录后点击上方下载按钮下载查看

网友评论0