jquery+velocity模仿iphone长按图标抖动删除卸载应用app效果代码

代码语言:html

所属分类:其他

代码描述:jquery+velocity模仿iphone长按图标抖动删除卸载应用app效果代码

代码标签: jquery velocity 模仿 iphone 长按 图标 抖动 删除 卸载 应用 app

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

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">

  
  
<style>
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
@import url("https://fonts.googleapis.com/css?family=Poppins:300,500");
html {
  height: 100vh;
  width: 100vw;
  background: linear-gradient(65deg, rgba(18, 9, 35, 0.99) 0%, rgba(171, 189, 115, 0.51) 100%) no-repeat;
}

body {
  display: flex;
  height: 100%;
  font-family: Heebo;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: rgba(5, 185, 156, 0.25);
  padding: 0 25px;
}

.stage {
  justify-content: center;
  position: relative;
  top: -25px;
  align-items: center;
  display: flex;
  flex-direction: column;
}

h3 {
  color: white;
  text-align: center;
  font-family: "Poppins", Helvetica, sans-serif;
  font-weight: 300;
  text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
  transition: all 500ms ease-in-out;
  margin-bottom: 50px;
  font-size: 1.5rem;
}
@media (min-width: 500px) {
  h3 {
    margin-bottom: 75px;
    font-size: 2.3rem;
  }
}

.app {
  display: block;
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 40px;
  background: #e0e0e0 no-repeat center;
  background-image: url(//repo.bfw.wiki/bfwrepo/icon/5df8722905f09.png);
  background-size: 200px 200px;
  z-index: 0;
  box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.5);
  transform: scale(1);
  opacity: 1;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  transition: all 50ms ease-in-out;
}
.app:active {
  box-shadow: inset 0 0 0px 200px rgba(0, 0, 0, 0.25);
}
.app.animated {
  box-shadow: 0 15px 25px -10px rgba(0, 0, 0, 0.5);
}
.app.deleted {
  transform: scale(0.25);
  opacity: 0;
}

.close {
  display: flex;
  opacity: 0;
  transform: translateY(-15px) scale(0.75);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: absolute;
  font-size: 36px;
  color: tomato;
  left: -12%;
  top: -12%;
  width: 60px;
  height: 60px;
  background: #e1e1e1;
  border-radius: 50%;
  transition: all 50ms ease-in-out;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  box-shadow: 2px 2px 2px -2px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  position: fixed;
  top: 50%;
  left: auto;
  height: 40px;
  width: 130px;
  border-radius: 5px;
  background: #323f4c;
  border: none;
  color: white;
  letter-spacing: 1px;
  font-family: "Poppins", Helvetica, sans-serif;
  font-weight: 300;
  font-size: 14px;
  box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.5);
  transition: all 50ms ease-in-out;
}
button i {
  margin-right: 8px;
}
button:focus {
  outline: none;
}
button:active {
  box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.5), inset 0 0 15px 0px rgba(255, 255, 255, 0.1);
}

.animated {
  -webkit-animation-name: wiggle;
          animation-name: wiggle;
  -webkit-animation-duration: 200ms;
          animation-duration: 200ms;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
  -webkit-animation-iteration-count: in.........完整代码请登录后点击上方下载按钮下载查看

网友评论0