vue实现一个杯子液体波动倒计时动画效果代码

代码语言:html

所属分类:动画

代码描述:vue实现一个杯子液体波动倒计时动画效果代码,多种颜色和效果组合

代码标签: 杯子 液体 波动 倒计时 动画 效果

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


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

<head>

  <meta charset="UTF-8">
  

  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
  
  
  
<style>
@import url("https://fonts.googleapis.com/css?family=Roboto:100,400");
*, *::after, *::before {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  background: linear-gradient(to bottom right, #c8c897, #6590A2);
}

[v-cloak] {
  display: none;
}

a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

::-webkit-scrollbar {
  display: none;
}

.stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: #1E384C;
  transition: background-color 0.3s;
}
@media (min-width: 500px) {
  .stage {
    border-radius: 5px;
    max-height: 550px;
    max-width: 350px;
  }
}
.stage.menu-open .microphone {
  transform: translate3d(-1em, 0, 0);
  opacity: 0;
}
.stage.menu-open .voices-menu__button {
  z-index: 40;
  transform: translate3d(0, 0, 0);
  opacity: 1;
}
.stage.menu-open .menu {
  z-index: 25;
}
.stage.menu-open .time {
  transform: translate3d(0, -200%, 0);
  transition: 0.5s opacity, 0.5s transform;
  opacity: 0;
}
.stage.menu-open button {
  transform: translate3d(0, 200%, 0);
  transition-delay: 0s;
  opacity: 0;
}
.stage.menu-open .percent {
  transition: 0.4s opacity, 0.4s transform;
  transform: translate3d(0, 50%, 0);
  opacity: 0;
}
.stage.menu-open .menu__item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.stage.menu-open .menu__item:nth-child(1) {
  transition-delay: 0.2s;
}
.stage.menu-open .menu__item:nth-child(2) {
  transition-delay: 0.3s;
}
.stage.menu-open .menu__item:nth-child(3) {
  transition-delay: 0.4s;
}
.stage.menu-open .menu__item:nth-child(4) {
  transition-delay: 0.5s;
}
.stage.voices-open .voices-menu {
  z-index: 35;
}
.stage.voices-open .voices-menu__bg {
  transform: scale(6);
}
.stage.voices-open .voices-menu__close {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0);
}
.stage.voices-open .voices-list-wrapper {
  opacity: 1;
}
.stage.voices-open .voices-list__item {
  opacity: 1;
  transform: translate(0, 0);
  transition: opacity 0.15s, transform 0.2s;
}
.stage.voices-open .voices-list__item:nth-child(1) {
  transition-delay: 75ms;
}
.stage.voices-open .voices-list__item:nth-child(2) {
  transition-delay: 150ms;
}
.stage.voices-open .voices-list__item:nth-child(3) {
  transition-delay: 225ms;
}
.stage.voices-open .voices-list__item:nth-child(4) {
  transition-delay: 300ms;
}
.stage.voices-open .voices-list__item:nth-child(5) {
  transition-delay: 375ms;
}
.stage.voices-open .voices-list__item:nth-child(6) {
  transition-delay: 450ms;
}
.stage.voices-open .voices-list__item:nth-child(7) {
  transition-delay: 525ms;
}
.stage.voices-open .voices-list__item:nth-child(8) {
  transition-delay: 600ms;
}
.stage.voices-open .voices-list__item:nth-child(9) {
  transition-delay: 675ms;
}
.stage.voices-open .voices-list__item:nth-child(10) {
  transition-delay: 750ms;
}

.mi.........完整代码请登录后点击上方下载按钮下载查看

网友评论0