带音效卡通答题问答交互动画效果代码
代码语言: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. ======================================================================== */ /* ============================================================================== ================================================================================= */ /* ============================================================================== ================================================================================= */ /* ============================================================================== ================================================================================= */ /* ===================================================================== End of scenes markup ======================================================================== */ } @media only screen and (max-width: 1000px) { body .main_inner__scenes { transform: translateY(calc(-50% - 120px)) scale(0.6); position: relative; top: 60px; } } body .main_inner__scenes .scene { text-align: center; -webkit-animation: float 2s 0.4s infinite; animation: float 2s 0.4s infinite; bottom: -500px; width: 200px; height: 275px; display: none; transition: all 0.3s; } body .main_inner__scenes .scene img { max-height: 275px; max-width: 200px; } body .main_inner__scenes .mario { --main-black: #271c1c; --main-grey: transparent; --main-red: #fc5946; --main-hair: #4e342e; --main-skin: #edbeb6; } body .main_inner__scenes .mario .container { position: relative; justify-items: center; display: grid; justify-content: center; align-content: center; } body .main_inner__scenes .mario .hat { position: relative; display: grid; justify-items: center; z-index: -1; opacity: 1; } body .main_inner__scenes .mario .hat .main { width: 166px; height: 166px; background: var(--main-red); border-radius: 50% 45% 60%; transform: rotateZ(45deg); border: 4px solid var(--main-black); box-sizing: border-box; } body .main_inner__scenes .mario .hat .label { position: absolute; background: #fff; width: 55px; height: 55px; border-radius: 50%; border: 4px solid var(--main-black); box-sizing: border-box; top: 6%; display: grid; justify-content: center; } body .main_inner__scenes .mario .hat .label p { color: var(--main-red); font-family: "Nunito", sans-serif; font-size: 30px; font-weight: 900; margin: 0; } body .main_inner__scenes .mario .hat .screen { width: 130px; height: 60px; background: var(--main-red); position: absolute; top: 30%; border-radius: 50%; border: 4px solid var(--main-black); } body .main_inner__scenes .mario .hat::before { content: ""; display: block; width: 180px; height: 100px; background: var(--main-grey); position: absolute; bottom: 0; border-radius: 50%; border-top: 5px solid var(--main-black); box-sizing: border-box; z-index: 1; } body .main_inner__scenes .mario .hat::after { content: ""; width: 200px; height: 20px; background: var(--main-grey); z-index: 1; position: absolute; top: 61%; } body .main_inner__scenes .mario .ears { width: 190px; height: 50px; position: absolute; top: 53%; } body .main_inner__scenes .mario .ears .ear { position: absolute; width: 25px; height: 48px; border-radius: 35px 45px 15px; background: var(--main-skin); box-sizing: border-box; border: 4px solid var(--main-black); } body .main_inner__scenes .mario .ears .ear.left { left: 10px; transform: rotate(-10deg); } body .main_inner__scenes .mario .ears .ear.right { transform: scaleX(-1) rotate(-10deg); right: 10px; } body .main_inner__scenes .mario .head { width: 210px; height: 220px; position: absolute; -webkit-clip-path: ellipse(120px 95px at center 74.5%); clip-path: ellipse(120px 95px at center 74.5%); z-index: 2; display: grid; justify-items: center; overflow: hidden; } body .main_inner__scenes .mario .head .face { width: 120px; height: 85px; position: absolute; background: var(--main-skin); border-radius: 50%; border: 4px solid var(--main-black); top: 38%; display: grid; justify-items: center; } body .main_inner__scenes .mario .head .face::after { content: ""; display: block; width: 104px; height: 110px; background: var(--main-skin); position: absolute; bottom: 67%; border-color: var(--main-black); border-style: solid; border-width: 0px 5px; border-bottom: 5px solid transparent; } body .main_inner__scenes .mario .head .eyes { width: 70px; height: 40px; position: absolute; bottom: 41%; } body .main_inner__scenes .mario .head .eyes .eye { z-index: 20; position: absolute; width: 20px; height: 30px; background: white; border: 3px solid var(--main-black); border-radius: 30px; display: grid; justify-items: end; align-items: center; } body .main_inner__scenes .mario .head .eyes .eye::before { content: ""; display: block; position: absolute; width: 18px; height: 25px; right: -3px; background: skyblue; box-sizing: border-box; border: 3px solid var(--main-black); border-radius: 25px; } body .main_inner__scenes .mario .head .eyes .eye::after { content: ""; display: block; position: absolute; width: 12px; height: 15px; right: -3px; background: var(--main-black); box-sizing: border-box; border: 3px solid var(--main-black); border-radius: 25px; } body .main_inner__scenes .mario .head .eyes .eye.left { left: 0%; } body .main_inner__scenes .mario .head .eyes .eye.right { right: 0%; transform: scaleX(-1); } body .main_inner__scenes .mario .head .mustache { position: absolute; display: grid; justify-items: center; bottom: 43%; } body .main_inner__scenes .mario .head .mustache .main { width: 82.5px; height: 30px; position: absolute; background: var(--main-hair); display: grid; border-radius: 0 0 270px 270px; border: 3px solid var(--main-black); border-top: 0px; } body .main_inner__scenes .mario .head .mustache .main::before { content: ""; display: block; width: 90px; height: 22px; position: absolute; background: var(--main-skin); top: -50%; left: 50%; transform: translateX(-50%); border-radius: 50%; border: 2px solid transparent; border-bottom: 5px solid var(--main-black); } body .main_inner__scenes .mario .head .mustache .detail { background: linear-gradient(rgba(255, 0, 255, 0), var(--main-hair), var(--main-hair)); background-clip: padding-box; position: absolute; border-radius: 50%; border: 1px solid transparent; border-bottom: 4px solid var(--main-black); z-index: 3; } body .main_inner__scenes .mario .head .mustache .detail.farleft { width: 20px; height: 17px; top: 10px; transform: translateX(-120%) rotate(40deg); } body .main_inner__scenes .mario .head .mustache .detail.left { width: 20px; height: 12px; top: 20px; transform: translateX(-49%) rotate(5deg); } body .main_inner__scenes .mario .head .mustache .detail.right { width: 20px; height: 12px; top: 20px; transform: translateX(49%) rotate(-5deg); } body .main_inner__scenes .mario .head .mustache .detail.farright { width: 20px; height: 17px; top: 9px; transform: translateX(120%) rotate(-40deg); } body .main_inner__scenes .mario .head .nose { width: 45px; height: 40px; background: var(--main-skin); position: absolute; bottom: 31%; border-radius: 48% 48% 50% 50%; border: 4px solid var(--main-black); box-sizing: border-box; z-index: 30; } body .main_inner__scenes .mario .hair { width: 144px; height: 60px; position: absolute; top: 32%; } body .main_inner__scenes .mario .hair .hair-back { width: 18px; height: 60px; position: absolute; box-sizing: border-box; border: 4px solid var(--main-black); border-radius: 10px; background: var(--main-hair); } body .main_inner__scenes .mario .hair .hair-back::after { content: ""; display: block; position: absolute; width: 15px; height: 90%; box-sizing: border-box; border: 4px solid var(--main-black); border-left: 0px; border-radius: 10px; background: var(--main-hair); z-index: 20; top: -9%; } body .main_inner__scenes .mario .hair .hair-back.left { left: 0; } body .main_inner__scenes .mario .hair .hair-back.left::after { left: 3.75px; } body .main_inner__scenes .mario .hair .hair-back.right { right: 0; } body .main_inner__scenes .mario .hair .hair-back.right::after { right: 3.75px; transform: scale(-1); } body .main_inner__scenes .mario .brows { width: 86px; height: 22px; position: absolute; z-index: 40; top: 40%; padding-top: 2px; overflow: hidden; } body .main_inner__scenes .mario .brows .brow { width: 30px; height: 15px; background: var(--main-hair); position: absolute; border: 4px solid var(--main-black); border-radius: 45px 60px 0% 0%; transform: rotate(5deg); } body .main_inner__scenes .mario .brows .brow::after { content: ""; display: block; position: absolute; width: 38px; height: 10px; top: 50%; left: -15%; background: var(--main-skin); border-radius: 40% 60% 0 0; border-width: 3px solid transparent; border-top: 3px solid var(--main-black); } body .main_inner__scenes .mario .brows .brow.right { transform: scaleX(-1) rotate(5deg); right: 0; } body .main_inner__scenes .moogle html { height: 100%; } body .main_inner__scenes .moogle body { background-color: #d8d8d8; } body .main_inner__scenes .moogle .container { transform: scale(0.7); margin: auto; right: 0; left: 0; top: 0; bottom: 0; display: flex; justify-content: center; align-items: center; width: 110px; height: 330px; } body .main_inner__scenes .moogle .container, body .main_inner__scenes .moogle .head, body .main_inner__scenes .moogle .nose, body .main_inner__scenes .moogle .cheeks, body .main_inner__scenes .moogle .eyes, body .main_inner__scenes .moogle .body, body .main_inner__scenes .moogle .ball, body .main_inner__scenes .moogle .feet, body .main_inner__scenes .moogle .ears, body .main_inner__scenes .moogle .inside, body .main_inner__scenes .moogle .wings, body .main_inner__scenes .moogle .wings2 { position: absolute; } body .main_inner__scenes .moogle .head { background: #FFECCE; width: 100px; height: 100px; border-radius: 100%; top: 115px; left: 0px; z-index: -2; } body .main_inner__scenes .moogle .head:before { content: ""; position: absolute; width: 110px; height: 50px; border-radius: 100%; background: #FFECCE; top: 60px; left: -5px; overflow: hidden; z-index: -2; } body .main_inner__scenes .moogle .nose { width: 40px; height: 40px; background: #FF735A; border-radius: 100%; top: 50px; left: 30px; } body .main_inner__scenes .moogle .cheeks { background: #FFCEAE; height: 32px; width: 30px; border-radius: 100%; top: 70px; left: -5px; } body .main_inner__scenes .moogle .cheeks:after { content: ""; left: 80px; background: #FFCEAE; width: 30px; height: 32px; position: absolute; border-radius: 100%; } body .main_inner__scenes .moogle .eyes { width: 20px; height: 10px; border: 2px solid #000; border-top-right-radius: 30px; border-top-left-radius: 30px; border-bottom: none; top: 58px; left: 15px; z-index: -1; transform: rotate(20deg); } body .main_inner__scenes .moogle .eyes:after { content: ""; position: absolute; width: 20px; height: 10px; border: 2px solid #000; border-top-right-radius: 30px; border-top-left-radius: 30px; border-bottom: none; left: 40px; top: -17px; transform: rotate(-40deg); } body .main_inner__scenes .moogle .ball { background: #F00144; width: 80px; height: 80px; border-radius: 100%; top: 0px; } body .main_inner__scenes .moogle .ball:after { content: ""; background: #000; width: 5px; height: 35px; position: absolute; top: 80px; left: 35px; z-index: -3; } body .main_inner__scenes .moogle .body { width: 90px; background: #FFECCE; height: 100px; top: 210px; border-radius: 50%/60% 60% 40% 40%; left: 5px; z-index: 1; } body .main_inner__scenes .moogle .body:before { content: ""; position: absolute; background: #FFECCE; width: 10px; height: 20px; border: 2px solid #FFCEAE; border-radius: 40%; border-top: none; left: 20px; top: 45px; transform: rotate(-20deg); } body .main_inner__scenes .moogle .body:after { content: ""; position: absolute; background: #FFECCE; width: 10px; height: 20px; border: 2px solid #FFCEAE; border-radius: 40%; border-top: none; left: 55px; top: 45px; transform: rotate(20deg); } body .main_inner__scenes .moogle .feet { background: #FFECCE; width: 15px; height: 30px; border-radius: 40%; top: 300px; left: 25px; } body .main_inner__scenes .moogle .feet:before { content: ""; position: absolute; background: #FFECCE; width: 15px; height: 30px; border-radius: 40%; left: 35px; } body .main_inner__scenes .moogle .ears { width: 0; height: 0; border-style: solid; border-width: 0 25px 25px 25px; border-color: transparent transparent #FFECCE transparent; left: -13px; top: 118px; transform: rotate(-40deg); } body .main_inner__scenes .moogle .ears:before { content: ""; position: absolute; width: 0; height: 0; border-style: solid; border-width: 0 25px 25px 25px; border-color: transparent transparent #FFECCE transparent; left: 33px; transform: rotate(80deg); top: 50px; } body .main_inner__scenes .moogle .inside { width: 0; height: 0; border-style: solid; border-width: 0 10px 10px 10px; border-color: transparent transparent #FFCEAE transparent; left: 0px; top: 125px; transform: rotate(-40deg); } body .main_inner__scenes .moogle .inside:before { content: ""; position: absolute; width: 0; height: 0; border-style: solid; border-width: 0 10px 10px 10px; border-color: transparent transparent #FFCEAE transparent; left: 52px; transform: rotate(80deg); top: 51px; } body .main_inner__scenes .moogle .wings { background: purple; width: 60px; top: 230px; height: 40px; z-index: 0; left: -40px; -webkit-clip-path: polygon(1% 98%, 24% 0%, 51% 56%, 70% 15%, 86% 46%, 100% 23%, 88% 87%, 60% 70%, 32% 100%, 22% 83%); clip-path: polygon(1% 98%, 24% 0%, 51% 56%, 70% 15%, 86% 46%, 100% 23%, 88% 87%, 60% 70%, 32% 100%, 22% 83%); } body .main_inner__scenes .moogle .wings2 { background: purple; width: 60px; height: 40px; z-index: 0; left: 80px; top: 230px; transform: scale(-1, 1); -webkit-clip-path: polygon(1% 98%, 24% 0%, 51% 56%, 70% 15%, 86% 46%, 100% 23%, 88% 87%, 60% 70%, 32% 100%, 22% 83%); clip-path: polygon(1% 98%, 24% 0%, 51% 56%, 70% 15%, 86% 46%, 100% 23%, 88% 87%, 60% 70%, 32% 100%, 22% 83%); } body .main_inner__scenes .kirby * { box-sizing: border-box; } body .main_inner__scenes .kirby *::before, body .main_inner__scenes .kirby *::after { box-sizing: border-box; } body .main_inner__scenes .kirby body { min-height: 100vh; background: #fff; margin: 0; display: flex; align-items: center; justify-content: center; display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 0.625rem; grid-template-areas: ". main main ." ". main main ."; } body .main_inner__scenes .kirby #container { width: 190px; height: 216px; margin: 0; grid-area: main; align-self: center; justify-self: center; } body .main_inner__scenes .kirby .kirby, body .main_inner__scenes .kirby .kirby *, body .main_inner__scenes .kirby .kirby *::before, body .main_inner__scenes .kirby .kirby *::after { position: absolute; } body .main_inner__scenes .kirby .face { top: 1.75rem; left: -0.25rem; transform: rotate(-10deg); } body .main_inner__scenes .kirby .eye { z-index: 1; top: 1.25rem; width: 1.125rem; height: 2.25rem; background: #782838; border-radius: 50%; } body .main_inner__scenes .kirby .eye:nth-child(1) { left: 2.75rem; } body .main_inner__scenes .kirby .eye:nth-child(1)::before { content: ""; top: 0.25rem; left: 0.35rem; width: 0.475rem; height: 0.75rem; background: #fff; border-radius: 50%; } body .main_inner__scenes .kirby .eye:nth-child(1)::after { content: ""; top: 1rem; left: 0.25rem; width: 0.625rem; height: 0.75rem; border-radius: 50%; box-shadow: 0 5px 0 0 #6e9dea; } body .main_inner__scenes .kirby .eye:nth-child(2) { left: 5rem; } body .main_inner__scenes .kirby .eye:nth-child(2)::before { content: ""; top: 0.25rem; left: 0.35rem; width: 0.475rem; height: 0.75rem; background: #fff; border-radius: 50%; } body .main_inner__scenes .kirby .eye:nth-child(2)::after { content: ""; top: 1rem; left: 0.25rem; width: 0.625rem; height: 0.75rem; border-radius: 50%; box-shadow: 0 5px 0 0 #6e9dea; } body .main_inner__scenes .kirby .cheek { top: 3.25rem; width: 1.25rem; height: 0.75rem; background: #ea6e7e; border-radius: 50%; } body .main_inner__scenes .kirby .cheek:nth-child(1) { left: 1.5rem; } body .main_inner__scenes .kirby .cheek:nth-child(2) { left: 6rem; } body .main_inner__scenes .kirby .mouth { top: 4rem; left: 3.85rem; height: 1rem; width: 1.25rem; border-radius: 50%/30% 30% 70% 70%; background: #782838; } body .main_inner__scenes .kirby .mouth::before { content: ""; top: 0.4rem; left: 0.25rem; width: 0.75rem; height: 0.45rem; border-radius: 50%; background: #dd4545; } body .main_inner__scenes .kirby .arm { border: 0.1875rem solid #782838; z-index: -1; background: #eda8b6; border-radius: 50%; overflow: hidden; } body .main_inner__scenes .kirby .arm:nth-child(1) { top: 4rem; left: -2rem; width: 5rem; height: 4rem; } body .main_inner__scenes .kirby .arm:nth-child(2) { top: -2rem; left: 5.5rem; width: 4rem; height: 5rem; } body .main_inner__scenes .kirby .body { border: 0.1875rem solid #782838; top: 1.75rem; left: 1.75rem; width: 10rem; height: 10rem; background: #eda8b6; border-radius: 50%; } body .main_inner__scenes .kirby .body::before { content: ""; z-index: 1; top: 4.75rem; left: -0.4rem; width: 0.75rem; height: 3rem; background: inherit; border-radius: 1rem; } body .main_inner__scenes .kirby .body::after { content: ""; z-index: 1; left: 5.5rem; width: 3.25rem; height: 1.5rem; background: inherit; border-radius: 0 1rem; transform: rotate(25deg); } body .main_inner__scenes .kirby .foot { border: 0.1875rem solid #782838; z-index: 2; top: 5.5rem; width: 4rem; height: 5.5rem; background: #dd4545; border-radius: 50%; } body .main_inner__scenes .kirby .foot:nth-child(1) { transform: rotate(-45deg); } body .main_inner__scenes .kirby .foot:nth-child(2) { z-index: -1; top: 6.125rem; left: 5.25rem; transform: rotate(-25deg); } body .main_inner__scenes .akuaku .container { position: absolute; left: 0; top: 40%; right: 0; margin: auto; width: 35px; } body .main_inner__scenes .akuaku .feather { position: absolute; } body .main_inner__scenes .akuaku .feather { opacity: 0; } body .main_inner__scenes .akuaku .feather:nth-child(1) { transform: translateX(-6em) translateY(-6em) rotate(-20deg); left: -3em; top: -4em; width: 3em; height: 4em; background: #008DBB; -webkit-clip-path: polygon(100% 40%, 0 0, 100% 100%); clip-path: polygon(100% 40%, 0 0, 100% 100%); } body .main_inner__scenes .akuaku .feather:nth-child(2) { transform: translateX(-3em) translateY(-6em) rotate(-10deg); left: 0; top: -6em; width: 2em; height: 6em; background: #FFBE58; -webkit-clip-path: polygon(50% 100%, 80% 0, 0 40%); clip-path: polygon(50% 100%, 80% 0, 0 40%); } body .main_inner__scenes .akuaku .feather:nth-child(3) { transform: translateX(2em) translateY(-3em) rotate(20deg); left: 1.5em; top: -5em; width: 1.5em; height: 5em; background: #FE8101; -webkit-clip-path: polygon(30% 100%, 100% 0, 0 40%); clip-path: polygon(30% 100%, 100% 0, 0 40%); } body .main_inner__scenes .akuaku .feather:nth-child(4) { transform: translateX(6em) translateY(-6em) rotate(20deg); left: 2.5em; top: -3em; width: 1em; height: 3em; background: #FF5D7A; -webkit-clip-path: polygon(10% 44%, 100% 0, 60% 70%, 0 100%); clip-path: polygon(10% 44%, 100% 0, 60% 70%, 0 100%); } body .main_inner__scenes .akuaku .body { opacity: 0; transform: translateY(1em); position: relative; left: -1em; margin-top: -0.5em; top: 0.8em; width: 4em; height: 7em; background: #422202; -webkit-clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%); clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%); } body .main_inner__scenes .akuaku .eyebrows { opacity: 0; transform: scale(1.2); position: absolute; top: 50%; left: -1em; width: 2em; height: 1em; background: #FE5F4C; z-index: 1; } body .main_inner__scenes .akuaku .eyebrows + .eyebrows { top: 40%; left: 1em; width: 2.25em; } body .main_inner__scenes .akuaku .eye { opacity: 0; transform: scale(1.2); box-sizing: border-box; position: absolute; top: 50%; left: -0.9em; width: 1.8em; height: 1.6em; background: #FDBE57; border-radius: 50%; border: 0.2em solid #67A858; } body .main_inner__scenes .akuaku .eye + .eye { top: 40%; left: 1em; width: 2.2em; height: 2.2em; border: 0.4em solid #67A858; } body .main_inner__scenes .akuaku .nose { opacity: 0; position: absolute; bottom: 0.8em; left: 0.5em; width: 1em; height: 1.5em; background: #FDBE57; -webkit-clip-path: polygon(60% 0, 0 75%, 50% 100%); clip-path: polygon(60% 0, 0 75%, 50% 100%); } body .main_inner__scenes .akuaku .lip { opacity: 0; position: absolute; bottom: -0.5em; left: -1em; width: 4em; height: 2.5em; background: #FE5F4C; -webkit-clip-path: polygon(49% 58%, 100% 41%, 89% 100%, 50% 97%, 10% 100%, 0 40%); clip-path: polygon(49% 58%, 100% 41%, 89% 100%, 50% 97%, 10% 100%, 0 40%); } body .main_inner__scenes .akuaku .lip + .lip { background: #fff; width: 3em; height: 1em; left: -0.5em; bottom: -0.15em; } body .main_inner__scenes .akuaku .beard { position: absolute; bottom: -2.2em; left: -0.2em; width: 1.2em; height: 1.8em; background: #67A858; -webkit-clip-path: polygon(72% 0, 100% 33%, 70% 100%, 50% 63%, 8% 86%, 26% 21%); clip-path: polygon(72% 0, 100% 33%, 70% 100%, 50% 63%, 8% 86%, 26% 21%); opacity: 0; transform: translateX(-2em) translateY(3em) rotate(20deg); } body .main_inner__scenes .akuaku .beard + .beard { left: 0.8em; transform: translateX(2em) translateY(3em) rotate(-20deg); -webkit-clip-path: polygon(47% 0, 85% 27%, 62% 73%, 50% 100%, 34% 73%, 13% 30%); clip-path: polygon(47% 0, 85% 27%, 62% 73%, 50% 100%, 34% 73%, 13% 30%); } body .main_inner__scenes .akuaku .feather { -webkit-animation: feather 0.25s ease-in-out forwards; animation: feather 0.25s ease-in-out forwards; } body .main_inner__scenes .akuaku .feather:nth-child(1) { -webkit-animation-delay: 0.5s; animation-delay: 0.5s; } body .main_inner__scenes .akuaku .feather:nth-child(2) { -webkit-animation-delay: 0.75s; animation-delay: 0.75s; } body .main_inner__scenes .akuaku .feather:nth-child(3) { -webkit-animation-delay: 0.85s; animation-delay: 0.85s; } body .main_inner__scenes .akuaku .feather:nth-child(4) { -webkit-animation-delay: 1s; animation-delay: 1s; } body .main_inner__scenes .akuaku .body { -webkit-animation: feather 0.25s ease-in-out forwards; animation: feather 0.25s ease-in-out forwards; -webkit-animation-delay: 1.15s; animation-delay: 1.15s; } body .main_inner__scenes .akuaku .eyebrows { -webkit-animation: eyes 0.25s ease-in-out forwards, eyebrow1 10s ease-in-out infinite; animation: eyes 0.25s ease-in-out forwards, eyebrow1 10s ease-in-out infinite; -webkit-animation-delay: 1.25s, 3s; animation-delay: 1.25s, 3s; } body .main_inner__scenes .akuaku .eyebrows + .eyebrows { -webkit-animation: eyes 0.25s ease-in-out forwards, eyebrow2 10s ease-in-out infinite; animation: eyes 0.25s ease-in-out forwards, eyebrow2 10s ease-in-out infinite; -webkit-animation-delay: 1.25s, 3s; animation-delay: 1.25s, 3s; } body .main_inner__scenes .akuaku .eye { -webkit-animation: eyes 0.25s ease-in-out forwards, eye1 10s ease-in-out infinite; animation: eyes 0.25s ease-in-out forwards, eye1 10s ease-in-out infinite; -webkit-animation-delay: 1.25s, 3s; animation-delay: 1.25s, 3s; } body .main_inner__scenes .akuaku .eye + .eye { -webkit-animation: eyes 0.25s ease-in-out forwards, eye2 10s ease-in-out infinite; animation: eyes 0.25s ease-in-out forwards, eye2 10s ease-in-out infinite; -webkit-animation-delay: 1.25s, 3s; animation-delay: 1.25s, 3s; } body .main_inner__scenes .akuaku .nose { -webkit-animation: nose1 0.25s ease-in-out forwards, nose 10s ease-in-out infinite; animation: nose1 0.25s ease-in-out forwards, nose 10s ease-in-out infinite; -webkit-animation-delay: 1.35s, 3s; animation-delay: 1.35s, 3s; } body .main_inner__scenes .akuaku .lip { -webkit-animation: lip 0.25s ease-in-out forwards, lip1 10s ease-in-out infinite; animation: lip 0.25s ease-in-out forwards, lip1 10s ease-in-out infinite; -webkit-animation-delay: 1.45s, 3s; animation-delay: 1.45s, 3s; } body .main_inner__scenes .akuaku .lip + .lip { -webkit-animation: lip 0.25s ease-in-out forwards, lip2 10s ease-in-out infinite; animation: lip 0.25s ease-in-out forwards, lip2 10s ease-in-out infinite; -webkit-animation-delay: 1.45s, 3s; animation-delay: 1.45s, 3s; } body .main_inner__scenes .akuaku .beard { -webkit-animation: beard1 0.25s ease-in-out forwards; animation: beard1 0.25s ease-in-out forwards; -webkit-animation-delay: 1.55s; animation-delay: 1.55s; } body .main_inner__scenes .akuaku .beard + .beard { -webkit-animation: beard2 0.25s ease-in-out forwards; animation: beard2 0.25s ease-in-out forwards; -webkit-animation-delay: 1.65s; animation-delay: 1.65s; } @-webkit-keyframes feather { to { opacity: 1; transform: translateX(0) translateY(0) rotate(0); } } @keyframes feather { to { opacity: 1; transform: translateX(0) translateY(0) rotate(0); } } @-webkit-keyframes body { to { opacity: 1; transform: translateY(0); } } @keyframes body { to { opacity: 1; transform: translateY(0); } } @-webkit-keyframes eyes { to { opacity: 1; transform: scale(1); } } @keyframes eyes { to { opacity: 1; transform: scale(1); } } @-webkit-keyframes nose1 { from { opacity: 0; transform: translateY(0.5em); } to { opacity: 1; transform: translateY(0); } } @keyframes nose1 { from { opacity: 0; transform: translateY(0.5em); } to { opacity: 1; transform: translateY(0); } } @-webkit-keyframes lip { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: scale(1); } } @keyframes lip { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: scale(1); } } @-webkit-keyframes beard1 { to { opacity: 1; transform: translateX(0) translateY(0) rotate(10deg); } } @keyframes beard1 { to { opacity: 1; transform: translateX(0) translateY(0) rotate(10deg); } } @-webkit-keyframes beard2 { to { opacity: 1; transform: translateX(0) translateY(0) rotate(-15deg); } } @keyframes beard2 { to { opacity: 1; transform: translateX(0) translateY(0) rotate(-15deg); } } @-webkit-keyframes eyebrow1 { 5%, 40% { top: 44%; } 42%, 80% { top: 50%; } } @keyframes eyebrow1 { 5%, 40% { top: 44%; } 42%, 80% { top: 50%; } } @-webkit-keyframes eyebrow2 { 5%, 40% { top: 48%; } 42%, 65% { top: 40%; } } @keyframes eyebrow2 { 5%, 40% { top: 48%; } 42%, 65% { top: 40%; } } @-webkit-keyframes eye1 { 5%, 40% { top: 48%; } 42%, 80% { top: 50%; } } @keyframes eye1 { 5%, 40% { top: 48%; } 42%, 80% { top: 50%; } } @-webkit-keyframes eye2 { 5%, 40% { top: 48%; height: 2em; } 42%, 80% { top: 40%; height: 2.2em; } } @keyframes eye2 { 5%, 40% { top: 48%; height: 2em; } 42%, 80% { top: 40%; height: 2.2em; } } @-webkit-keyframes nose { 5%, 40% { transform: rotate(-13deg); } 42%, 80% { transform: rotate(0); } } @keyframes nose { 5%, 40% { transform: rotate(-13deg); } 42%, 80% { transform: rotate(0); } } @-webkit-keyframes lip1 { 5%, 25% { transform: rotate(-5deg); } 30%, 75% { transform: rotate(5deg); } 77% { transform: rotate(0); } } @keyframes lip1 { 5%, 25% { transform: rotate(-5deg); } 30%, 75% { transform: rotate(5deg); } 77% { transform: rotate(0); } } @-webkit-keyframes lip2 { 2%, 5% { width: 3.3em; height: 1.3em; left: -0.65em; bottom: -0.2em; } 5%, 25% { width: 3.3em; height: 1.3em; left: -0.65em; bottom: -0.2em; transform: rotate(-5deg); } 30%, 75% { width: 3.3em; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0