带音效卡通答题问答交互动画效果代码

代码语言:html

所属分类:其他

代码描述:带音效卡通答题问答交互动画效果代码

代码标签: 答题 问答 交互 动画 效果

下面为部分代码预览,完整代码请点击下载或在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>
@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Roboto+Condensed");
@font-face {
  font-family: "Retrocycles";
  src: url("//repo.bfw.wiki/bfwrepo/font/RetrocyclesRegular.woff2") format("woff2"), url("//repo.bfw.wiki/bfwrepo/font/RetrocyclesRegular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Pasta";
  src: url("//repo.bfw.wiki/bfwrepo/font/PastaPalazzo.woff2") format("woff2"), url("//repo.bfw.wiki/bfwrepo/font/PastaPalazzo.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
* {
  box-sizing: border-box;
}

body .main_inner__breadcrumbs, body .main_inner__answers, body .main_inner__feedback, body .main_inner__info, body .main_inner__scenes .scene, body .main_inner__scenes, body .main_inner__circle .circles, body .main_inner__circle .circle, body .main_inner__circle, body .main_inner__title, body .main_inner__loading .loader, body .overlay {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
}

body .main_inner__breadcrumbs .breadcrumb.wrong:before, body .main_inner__breadcrumbs .breadcrumb.correct:before {
  display: block;
  position: absolute;
  font-family: "fontawesome";
  font-size: 18px;
}

body .main_inner__circle {
  background: #68859b;
  width: 300px;
  height: 300px;
  border-radius: 150px;
  transition: all 500ms;
  transition-timing-function: cubic-bezier(1, 0, 0.2, 0.99);
  z-index: -1;
  -webkit-animation: squiggly-anim 0.3s linear infinite;
          animation: squiggly-anim 0.3s linear infinite;
}

body {
  background: #7a94a7;
  overflow: hidden;
  font-family: "Roboto Condensed", sans-serif;
  padding: 40px;
  height: 100vh;
}
@media only screen and (max-width: 1000px) {
  body {
    padding: 34px;
    height: 400px;
  }
}
body svg {
  position: absolute;
}
body .options {
  position: absolute;
  right: 34px;
  top: 40px;
  z-index: 2;
}
body .options_bg img {
  width: 21px;
  -ms-interpolation-mode: nearest-neighbor;
      image-rendering: -moz-crisp-edges;
      image-rendering: pixelated;
}
body .options_sf img {
  width: 18px;
  margin-right: 10px;
  -ms-interpolation-mode: nearest-neighbor;
      image-rendering: -moz-crisp-edges;
      image-rendering: pixelated;
}
body .options div {
  float: left;
  transition: all 1s;
  cursor: pointer;
}
body .overlay {
  width: 100%;
  height: 100vh;
  pointer-events: none;
  background-image: url("//repo.bfw.wiki/bfwrepo/images/game/dati/ptp_grain.png"), -webkit-radial-gradient(center, ellipse cover, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.25) 100%);
}
@media only screen and (max-width: 1000px) {
  body .overlay {
    height: 100vh;
  }
}
@media only screen and (max-width: 1000px) {
  body .main {
    height: 600px;
  }
}
@media only screen and (max-width: 1000px) {
  body .main_inner {
    height: 600px;
  }
}
body .main_inner__loading {
  position: fixed;
  height: 100%;
  width: 100%;
  background: #CF3A39;
  lefT: 0;
  top: 0;
  z-index: 4;
}
body .main_inner__loading .joy {
  transform: scale(0);
  width: 200px;
  -webkit-animation: scale_bounce_expo 1s 0s forwards;
          animation: scale_bounce_expo 1s 0s forwards;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  opacity: 0.2;
  top: 50%;
  transform: translateY(-50%);
}
body .main_inner__loading .joy img {
  width: 100%;
}
body .main_inner__loading .text {
  font-family: "Pasta";
  position: absolute;
  text-align: center;
  left: 0;
  right: 0;
  margin: auto;
  top: -70px;
  width: 100px;
  font-size: 120px;
}
body .main_inner__loading .text .s,
body .main_inner__loading .text .b {
  font-size: 70px;
  float: left;
  font-family: "Pasta";
  font-size: 62px;
  clear: left;
  color: #ffb6a9;
  top: -26px;
  position: relative;
}
body .main_inner__loading .text span {
  float: left;
}
body .main_inner__loading .text span:nth-of-type(1) {
  -webkit-animation: scale_bounce_expo 1s 0.06s forwards;
          animation: scale_bounce_expo 1s 0.06s forwards;
  transform: scale(0);
}
body .main_inner__loading .text span:nth-of-type(2) {
  -webkit-animation: scale_bounce_expo 1s 0.12s forwards;
          animation: scale_bounce_expo 1s 0.12s forwards;
  transform: scale(0);
}
body .main_inner__loading .text span:nth-of-type(3) {
  -webkit-animation: scale_bounce_expo 1s 0.18s forwards;
          animation: scale_bounce_expo 1s 0.18s forwards;
  transform: scale(0);
}
body .main_inner__loading .text span:nth-of-type(4) {
  -webkit-animation: scale_bounce_expo 1s 0.24s forwards;
          animation: scale_bounce_expo 1s 0.24s forwards;
  transform: scale(0);
}
body .main_inner__loading .text span:nth-of-type(5) {
  -webkit-animation: scale_bounce_expo 1s 0.3s forwards;
          animation: scale_bounce_expo 1s 0.3s forwards;
  transform: scale(0);
}
body .main_inner__loading .text span:nth-of-type(6) {
  -webkit-animation: scale_bounce_expo 1s 0.36s forwards;
          animation: scale_bounce_expo 1s 0.36s forwards;
  transform: scale(0);
}
body .main_inner__loading .text span:nth-of-type(7) {
  -webkit-animation: scale_bounce_expo 1s 0.42s forwards;
          animation: scale_bounce_expo 1s 0.42s forwards;
  transform: scale(0);
}
body .main_inner__loading .text span:nth-of-type(8) {
  -webkit-animation: scale_bounce_expo 1s 0.48s forwards;
          animation: scale_bounce_expo 1s 0.48s forwards;
  transform: scale(0);
}
body .main_inner__loading .text span:nth-of-type(9) {
  -webkit-animation: scale_bounce_expo 1s 0.54s forwards;
          animation: scale_bounce_expo 1s 0.54s forwards;
  transform: scale(0);
}
body .main_inner__loading .text span:nth-of-type(10) {
  -webkit-animation: scale_bounce_expo 1s 0.6s forwards;
          animation: scale_bounce_expo 1s 0.6s forwards;
  transform: scale(0);
}
body .main_inner__loading .text span:nth-of-type(11) {
  -webkit-animation: scale_bounce_expo 1s 0.66s forwards;
          animation: scale_bounce_expo 1s 0.66s forwards;
  transform: scale(0);
}
body .main_inner__loading .text span:nth-of-type(12) {
  -webkit-animation: scale_bounce_expo 1s 0.72s forwards;
          animation: scale_bounce_expo 1s 0.72s forwards;
  transform: scale(0);
}
body .main_inner__loading .text span:nth-of-type(13) {
  -webkit-animation: scale_bounce_expo 1s 0.78s forwards;
          animation: scale_bounce_expo 1s 0.78s forwards;
  transform: scale(0);
}
body .main_inner__loading .text span:nth-of-type(14) {
  -webkit-animation: scale_bounce_expo 1s 0.84s forwards;
          animation: scale_bounce_expo 1s 0.84s forwards;
  transform: scale(0);
}
body .main_inner__loading .text span:nth-of-type(15) {
  -webkit-animation: scale_bounce_expo 1s 0.9s forwards;
          animation: scale_bounce_expo 1s 0.9s forwards;
  transform: scale(0);
}
body .main_inner__loading .bg {
  height: 100vh;
  width: 600px;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  -webkit-animation: spin 10s linear infinite;
          animation: spin 10s linear infinite;
}
@media only screen and (max-width: 650px) {
  body .main_inner__loading .bg {
    width: 100%;
  }
}
body .main_inner__loading .bg img {
  width: 600px;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
}
@media only screen and (max-width: 650px) {
  body .main_inner__loading .bg img {
    width: 100%;
  }
}
body .main_inner__loading.loaded {
  -webkit-animation: loadOut 1s 0s forwards;
          animation: loadOut 1s 0s forwards;
}
body .main_inner__loading button {
  opacity: 0;
  font-family: "Roboto Condensed", sans-serif;
  cursor: pointer;
  outline: none;
  -webkit-animation: pulse 1s 2s infinite;
          animation: pulse 1s 2s infinite;
}
body .main_inner__loading .loader {
  cursor: pointer;
  z-index: 5;
  color: white;
  text-align: center;
}
body .main_inner__loading .loader img {
  width: 200px;
  pointer-events: none;
  transform: scale(0);
  -webkit-animation: scale_bounce_expo 1s 0.7s forwards;
          animation: scale_bounce_expo 1s 0.7s forwards;
}
body .main_inner__loading .loader button {
  clear: both;
  outline: none;
  width: 240px;
  padding: 12px;
  background: transparent;
  margin-top: 30px;
  color: #ffcc00;
  border: 0;
  font-size: 44px;
  top: 50px;
  position: relative;
  left: -5px;
  display: inline-block;
  font-family: "pasta";
}
body .main_inner__modal, body .main_inner__modalContent {
  display: none;
  position: fixed;
  -webkit-animation: squiggly-anim 0.3s linear infinite, scale_bounce_expo 1s 0s forwards;
  animation: squiggly-anim 0.3s linear infinite;
  width: 500px;
  background: white;
  padding: 50px;
  border-radius: 20px;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 3;
  height: 450px;
  top: 50%;
  transform: translateY(-50%);
}
body .main_inner__modal button, body .main_inner__modalContent button {
  opacity: 1;
  border: none;
  background: #00b3ff;
  padding: 20px 30px 17px 30px;
  color: white;
  border-radius: 7px;
  font-size: 17px;
  margin-top: 30px;
  font-family: "Retrocycles";
}
body .main_inner__modal h1, body .main_inner__modalContent h1 {
  font-family: "Retrocycles";
  font-size: 50px;
  margin: 0;
  color: #3a2132;
}
body .main_inner__modal .score, body .main_inner__modalContent .score {
  font-size: 30px;
  color: #bd2b2b;
}
body .main_inner__modal a, body .main_inner__modalContent a {
  display: block;
  margin: 10px 0;
  font-weight: 700;
  color: #3a2031;
  text-decoration: underline;
}
@media only screen and (max-width: 650px) {
  body .main_inner__modal, body .main_inner__modalContent {
    width: calc(100% - 50px);
  }
}
body .main_inner__modalContent {
  -webkit-animation: none;
          animation: none;
  background: transparent !important;
}
body .main_inner__modalOverlay {
  position: fixed;
  height: 100%;
  width: 100%;
  background: rgba(39, 33, 86, 0.768627451);
  lefT: 0;
  top: 0;
  display: none;
  z-index: 2;
}
body .main_inner__logo {
  position: relative;
  z-index: 1;
}
@media only screen and (max-width: 1000px) {
  body .main_inner__logo {
    text-align: center;
  }
}
@media only screen and (max-width: 600px) {
  body .main_inner__logo img {
    width: 60px !important;
  }
}
body .main_inner__logo img {
  width: 100px;
}
body .main_inner__title {
  width: 33.33%;
  right: auto;
  left: 40px;
  padding-right: 80px;
}
@media only screen and (max-width: 1000px) {
  body .main_inner__title {
    width: 100%;
    text-align: center;
    padding: 0;
    left: 0;
    top: 150px;
  }
  body .main_inner__title p {
    margin-top: 6px !important;
  }
}
@media only screen and (max-width: 1000px) {
  body .main_inner__title p,
body .main_inner__title h1,
body .main_inner__title a,
body .main_inner__title div {
    float: none !important;
    border: 0 !important;
    width: 80% !important;
    margin: 0 auto !important;
    text-align: center !important;
    margin-top: 6px !important;
  }
}
body .main_inner__title h1 {
  border-top: 2px solid white;
  width: 240px;
  float: right;
  font-weight: normal;
  color: white;
  font-size: 20px;
  text-align: left;
  padding-top: 10px;
}
@media only screen and (max-width: 1000px) {
  body .main_inner__title h1 {
    font-size: 16px;
  }
}
body .main_inner__title p {
  color: white;
  margin: 0;
  font-size: 12px;
  margin-top: -4px;
  width: 240px;
  float: right;
  clear: both;
  opacity: 0.3;
}
body .main_inner__title a {
  color: #ff8874;
  margin: 0;
  font-size: 12px;
  transition: all 0.2s;
  margin-top: 12px;
  text-decoration: underline;
  width: 240px;
  float: right;
  clear: both;
  cursor: pointer;
}
body .main_inner__title .hint {
  color: white;
  width: 240px;
  display: none;
  float: right;
  clear: both;
  margin-top: 14px;
  font-size: 14px;
}
@media only screen and (max-width: 1000px) {
  body .main_inner__circle {
    transform: translateY(calc(-50% - 110px)) scale(0.6);
    position: relative;
    top: 360px;
  }
}
body .main_inner__circle .circle:nth-of-type(1) {
  transform: rotate(36deg);
}
body .main_inner__circle .circle:nth-of-type(2) {
  transform: rotate(72deg);
}
body .main_inner__circle .circle:nth-of-type(3) {
  transform: rotate(108deg);
}
body .main_inner__circle .circle:nth-of-type(4) {
  transform: rotate(144deg);
}
body .main_inner__circle .circle:nth-of-type(5) {
  transform: rotate(180deg);
}
body .main_inner__circle .circle:nth-of-type(6) {
  transform: rotate(216deg);
}
body .main_inner__circle .circle:nth-of-type(7) {
  transform: rotate(252deg);
}
body .main_inner__circle .circle:nth-of-type(8) {
  transform: rotate(288deg);
}
body .main_inner__circle .circle:nth-of-type(9) {
  transform: rotate(324deg);
}
body .main_inner__circle .circle:nth-of-type(10) {
  transform: rotate(360deg);
}
body .main_inner__circle .circles {
  width: 30px;
  height: 30px;
  border-radius: 20px;
  background: white;
  -webkit-animation: circle 3s infinite linear;
          animation: circle 3s infinite linear;
}
body .main_inner__circle .circles:nth-of-type(1) {
  transform-origin: 0px 2px;
}
body .main_inner__circle .circles:nth-of-type(2) {
  transform-origin: 0px 4px;
}
body .main_inner__circle .circles:nth-of-type(3) {
  transform-origin: 0px 6px;
}
body .main_inner__circle .circles:nth-of-type(4) {
  transform-origin: 0px 8px;
}
body .main_inner__circle .circles:nth-of-type(5) {
  transform-origin: 0px 10px;
}
body .main_inner__circle .circles:nth-of-type(6) {
  transform-origin: 0px 12px;
}
body .main_inner__circle .circles:nth-of-type(7) {
  transform-origin: 0px 14px;
}
body .main_inner__circle .circles:nth-of-type(8) {
  transform-origin: 0px 16px;
}
body .main_inner__circle .circles:nth-of-type(9) {
  transform-origin: 0px 18px;
}
body .main_inner__circle .circles:nth-of-type(10) {
  transform-origin: 0px 20px;
}
body .main_inner__scenes {
  /* =====================================================================

  Individual scene markup.
  Paste your SCSS in here, again us http://css2sass.herokuapp.com/ if 
  you are writing in plain CSS.
  Make sure the class matches the class in the HAML.

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

网友评论0