带音效卡通答题问答交互动画效果代码
代码语言: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_inne.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0