css实现一个三维超级玛丽带表情动画效果代码
代码语言:html
所属分类:三维
代码描述:css实现一个三维超级玛丽带表情动画效果代码,无js代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
html {
font-size: 1vw;
}
@media (min-width: 1000px) {
html {
font-size: 1.5vmin;
}
}
body {
margin: auto;
overflow: hidden;
background-image: radial-gradient(#1f1956 70%, #110e2e 90%);
background-position: 0 0;
background-size: 25vw 33vh;
box-shadow: inset 0 0 5rem #000, inset 0 0 2rem #000;
}
body div {
justify-content: center;
perspective: 50rem;
filter: drop-shadow(0 0 1rem #00487b);
}
body *:not(.i),
body *:not(.i):before,
body *:not(.i):after {
transform-style: preserve-3d;
box-sizing: border-box;
position: absolute;
content: "";
left: 0;
top: 0;
outline: none;
transition: transform 0.15s ease-in-out;
}
body i {
width: calc(100% / 15) !important;
}
body,
html,
div {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
flex-wrap: wrap;
overflow: hidden;
}
body > div > i1,
body > div > i2,
body > div > i3,
body > div > i4,
body > div > i5,
body > div > i,
body > div > b {
width: calc(100% / 5);
height: calc(100% / 5);
box-sizing: border-box;
z-index: 1;
display: flex;
flex-wrap: wrap;
position: relative;
}
body > div > i1:before,
body > div > i2:before,
body > div > i3:before,
body > div > i4:before,
body > div > i5:before,
body > div > i:before,
body > div > b:before {
content: "";
width: 5rem;
height: 5rem;
border-radius: 50%;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
box-shadow: 0 0 0 0rem rgba(189, 189, 189, 0.1), inset 0 0 0 0rem rgba(189, 189, 189, 0.1);
transition: box-shadow 2s cubic-bezier(0, 0, 0.72, 0.52);
}
body > div > i1:hover:before,
body > div > i2:hover:before,
body > div > i3:hover:before,
body > div > i4:hover:before,
body > div > i5:hover:before,
body > div > i:hover:before,
body > div > b:hover:before {
box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0), inset 0 0 0 5rem rgba(255, 255, 255, 0);
}
body i3:nth-of-type(3) {
display: none;
}
@media (orientation: portrait) {
html {
font-size: 1.9vmin;
}
div {
max-height: calc(100vw * 1.5);
}
body {
background-size: 33vw 20vh;
}
}
mario {
left: -50% !important;
bottom: 0;
right: -50%;
margin: auto;
width: 100rem;
height: 64rem;
}
z,
x,
y {
width: 100%;
height: 100%;
position: absolute;
z-index: 0;
transition: transform 0.25s ease-in-out !important;
}
sig {
font-size: 0.3rem;
color: #00487b;
width: 10em;
top: auto !important;
left: auto !important;
bottom: 0.2rem !important;
right: 0.2rem !important;
transform: skewX(10deg) scaleY(0.45) rotate(2deg);
}
sig,
sig * {
height: 9.25em;
overflow: hidden;
border-radius: 0.5em;
}
sig:before,
sig *:before {
width: 5em;
height: 5em;
background: currentColor;
transform: translate3d(-2.5em, 0, 0) rotate(-45deg);
box-shadow: -3em 3em 0 0 currentColor;
border-radius: 0.5em 2em 0.5em 2em;
}
sig * {
width: 5em;
transform: translate3d(3.75em, 0, 0) scaleY(0.95);
display: block !important;
}
sig *:before {
transform: translate3d(-3em, -2em, 0) rotate(-45deg);
box-shadow: -3em 3em 0 0 currentColor, -6em 6em 0 0 currentColor;
border-radius: 0.5em;
}
mario > u:nth-of-type(1), mario > u:nth-of-type(2) {
transform: translate3d(41rem, 27.25rem, 10rem) rotateY(-5deg) rotateX(2deg);
width: 9rem;
height: 10rem;
overflow: hidden;
background: #bdbdbd;
}
mario > u:nth-of-type(1) u, mario > u:nth-of-type(2) u {
background: #bdbdbd;
width: 9rem;
height: 10rem;
border-radius: 50%;
}
mario > u:nth-of-type(1) u u, mario > u:nth-of-type(2) u u {
width: 5rem;
height: 5.5rem;
background: linear-gradient(#00487b, #18bdd6);
border-radius: 50%;
transform: translate3d(2.9rem, 2.9rem, 0) rotate(-10deg);
box-shadow: inset 0 0 0.5rem #000c15, inset 0 0 0.5rem #0e6c7a;
}
mario > u:nth-of-type(1) u u:before, mario > u:nth-of-type(2) u u:before {
width: 3rem;
height: 3.5rem;
border: 1rem solid #000;
border-top-width: 1.2rem;
border-bottom-width: 1.2rem;
background: #bdbdbd;
transform: translate3d(0.7rem, 0.8rem, 0);
border-radius: 50%;
}
mario > u:nth-of-type(1) u u:after, mario > u:nth-of-type(2) u u:after {
width: 8rem;
height: 11rem;
background: radial-gradient(rgba(255, 255, 255, 0.5) -23%, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.5));
transform: translate3d(-2rem, -4rem, 0);
border-radius: 2rem;
box-shadow: 0 0 2rem rgba(0, 0, 0, 0.6);
}
mario > u:nth-of-type(2) {
transform: translate3d(49rem, 27.25rem, 10rem) rotateY(5deg) rotateX(2deg);
}
mario > u:nth-of-type(2) u u {
transform: translate3d(2rem, 2.9rem, 0) rotate(10deg);
}
mario > u:nth-of-type(2) u u:before {
transform: translate3d(1.2rem, 0.8rem, 0);
}
mario > u:nth-of-type(2) u u:after {
transform: translate3d(-1rem, -4rem, 0);
}
mario > u:nth-of-type(3) {
background: #c19c65;
width: 2rem;
height: 10rem;
transform: translate3d(49rem, 27rem, 10.8rem) rotateX(1deg);
}
mario > u:nth-of-type(3):before {
background: linear-gradient(#c19c65, #c2ae86, #c2ae86);
width: 4rem;
height: 10rem;
transform: translate3d(-3.9rem, 1rem, 0) rotatey(-30deg);
transform-origin: 100% 100%;
border-radius: 1rem;
}
mario > u:nth-of-type(3):after {
background: linear-gradient(#8a5b3e, #c19c65, #8a5b3e);
width: 4rem;
height: 10rem;
transform: translate3d(1.4rem, 1rem, -2rem) rotatey(30deg);
transform-origin: 100% 100%;
border-radius: 1rem;
}
mario > u:nth-of-type(4) {
background: #c19c65;
width: 8rem;
height: 5rem;
transform: translate3d(43rem, 23.5rem, 9.95rem) rotate(7deg) rotateY(-6deg) rotateX(10deg);
}
mario > u:nth-of-type(4):before {
background: #8a5b3e;
width: 8rem;
height: 2rem;
transform: translate3d(0, 5rem, 0) rotateX(-60deg);
transform-origin: 100% 0;
}
mario > u:nth-of-type(5) {
background: #c19c65;
width: 8rem;
height: 5rem;
transform: translate3d(49rem, 23.3rem, 9.95rem) rotate(-9deg) rotateY(6deg) rotateX(10deg);
}
mario > u:nth-of-type(5):before {
background: #8a5b3e;
width: 8rem;
height: 2rem;
transform: translate3d(0, 5rem, 0) rotateX(-60deg);
transform-origin: 100% 0;
}
mario > u:nth-of-type(6) {
background: #c19c65;
width: 5rem;
height: 2rem;
transform: translate3d(40rem, 27.5rem, 10.05rem) rotate(-40deg) rotateX(10deg);
border-radius: 1rem 0 0 0;
}
mario > u:nth-of-type(6):before {
background: #8a5b3e;
width: 5rem;
height: 2rem;
transform: translate3d(0, 2rem, 0) rotateX(-60deg);
transform-origin: 100% 0;
border-radius: 2rem 1rem 0 0/1rem 1rem 0 0;
}
mario > u:nth-of-type(6):after {
border-radius: 0 2rem 0 0;
background: #c19c65;
width: 5rem;
height: 3rem;
transform: translate3d(1rem, -2rem, 0.3rem) rotateY(-14deg) skewX(-39deg);
}
mario > u:nth-of-type(7) {
background: #c19c65;
width: 5rem;
height: 2rem;
transform: translate3d(55rem, 27.5rem, 10.05rem) rotate(40deg) rotateX(10deg);
border-radius: 0 1rem 0 0;
}
mario > u:nth-of-type(7):before {
background: linear-gradient(90deg, #8a5b3e, #c19c65, #c19c65);
width: 5rem;
height: 2rem;
transform: translate3d(0, 2rem, 0) rotateX(-60deg);
transform-origin: 100% 0;
}
mario > u:nth-of-type(7):after {
background: #c19c65;
width: 5rem;
height: 3rem;
transform: translate3d(-1rem, -2rem, 0.1rem) rotateY(14deg) skewX(39deg);
}
mario > u:nth-of-type(8) {
background: #c19c65;
width: 3rem;
height: 2rem;
transform: translate3d(39.75rem, 29.5rem, 10rem) rotate(-69deg) rotateX(10deg);
}
mario > u:nth-of-type(8):before {
background: #8a5b3e;
width: 3rem;
height: 2rem;
transform: translate3d(0, 2rem, 0) rotateX(-60deg);
transform-origin: 100% 0;
}
mario > u:nth-of-type(9) {
background: #c19c65;
width: 3rem;
height: 2rem;
transform: translate3d(57.2rem, 29.5rem, 10rem) rotate(69deg) rotateX(10deg);
}
mario > u:nth-of-type(9):before {
background: #c19c65;
width: 3rem;
height: 2rem;
transform: translate3d(0, 2rem, 0) rotateX(-60deg);
transform-origin: 100% 0;
}
mario > u:nth-of-type(10) {
background: #c19c65;
width: 3rem;
height: 2rem;
transform: translate3d(39.5rem, 31.5rem, 10rem) rotate(-90deg) rotateX(10deg);
}
mario > u:nth-of-type(10):before {
background: linear-gradient(-90deg, #8a5b3e, #d39684);
width: 3rem;
height: 2rem;
transform: translate3d(0, 2rem, 0) rotateX(-60deg);
transform-origin: 100% 0;
}
mario > u:nth-of-type(11) {
background: #c19c65;
width: 3rem;
height: 2rem;
transform: translate3d(57.2rem, 31.5rem, 10rem) rotate(90deg) rotateX(10deg);
}
mario > u:nth-of-type(11):before {
background: #c2ae86;
width: 3rem;
height: 2rem;
transform: translate3d(0, 2rem, 0) rotateX(-60deg);
transform-origin: 100% 0;
}
mario > u:nth-of-type(12) {
background: #c19c65;
width: 3rem;
height: 2rem;
transform: translate3d(40rem, 34rem, 10rem) rotate(-117deg) rotateX(10deg);
}
mario > u:nth-of-type(12):before {
background: #d39684;
width: 3rem;
height: 2rem;
transform: translate3d(0, 2rem, 0) rotateX(-60deg);
transform-origin: 100% 0;
}
mario > u:nth-of-type(13) {
background: #c19c65;
width: 3rem;
height: 2rem;
transform: translate3d(56.5rem, 34rem, 10rem) rotate(117deg) rotateX(10deg);
}
mario > u:nth-of-type(13):before {
background: #c2ae86;
width: 3rem;
height: 2rem;
transform: translate3d(0, 2rem, 0) rotateX(-60deg);
transform-origin: 100% 0;
}
mario > u:nth-of-type(14) {
background: #c19c65;
width: 3rem;
height: 2rem;
transform: translate3d(41.5rem, 35.5rem, 10rem) rotate(-150deg) rotateX(10deg);
}
mario > u:nth-of-type(14):before {
background: #d39684;
width: 3rem;
height: 2rem;
transform: translate3d(0, 2rem, 0) rotateX(-60deg);
transform-origin: 100% 0;
}
mario > u:nth-of-type(15) {
background: #c19c65;
width: 3rem;
height: 2rem;
transform: translate3d(55rem, 35.5rem, 10rem) rotate(150deg) rotateX(10deg);
}
mario > u:nth-of-type(15):before {
background: #d39684;
width: 3rem;
height: 2rem;
transform: translate3d(0, 2rem, 0) rotateX(-60deg);
transform-origin: 100% 0;
}
mario > u:nth-of-type(16) {
background: #c19c65;
width: 18rem;
height: 6rem;
transform: translate3d(41rem, 35.6rem, 11rem) rotateX(2deg);
border-radius: 3rem;
}
mario > u:nth-of-type(16):before {
width: 16rem;
height: 1rem;
transform: translate3d(2rem, -0.9rem, 0rem) rotateX(88deg);
background: #c19c65;
transform-origin: 0 100%;
}
mario > u:nth-of-type(17), mario > u:nth-of-type(18) {
transform: translate3d(40rem, 20rem, 0);
}
mario > u:nth-of-type(17) > u:nth-of-type(1), mario > u:nth-of-type(18) > u:nth-of-type(1) {
background: linear-gradient(to right, #c19c65, #8a5b3e);
width: 5rem;
height: 12rem;
transform: translate3d(19rem, 7rem, 10.3rem) rotateY(28deg);
transform-origin: 0 0;
}
mario > u:nth-of-type(17) > u:nth-of-type(1):before, mario > u:nth-of-type(18) > u:nth-of-type(1):before {
background: #8a5b3e;
width: 5.5rem;
height: 10rem;
transform: translate3d(4.8rem, 2rem, 0rem) rotateY(38deg);
transform-origin: 0 0;
}
mario > u:nth-of-type(17) > u:nth-of-type(2), mario > u:nth-of-type(18) > u:nth-of-type(2) {
width: 5rem;
height: 3rem;
transform: translate3d(25.5rem, 19rem, 7.3rem) rotateY(85deg) rotateX(-5deg);
transform-origin: 0 0;
background: #8a5b3e;
}
mario > u:nth-of-type(17) > u:nth-of-type(2):before, mario > u:nth-of-type(18) > u:nth-of-type(2):before {
width: 5rem;
height: 5rem;
transform: translate3d(0rem, 3rem, 0rem) rotateX(-28deg);
transform-origin: 0 0;
background: #8a5b3e;
border-radius: 0 0 30% 30%/0 0 100% 100%;
}
mario > u:nth-of-type(17) > u:nth-of-type(2):after, mario > u:nth-of-type(18) > u:nth-of-type(2):after {
width: 5rem;
height: 5.05rem;
transform: translate3d(0rem, -5rem, 0rem) rotateX(33deg);
transform-origin: 0 0;
background: #8a5b3e;
transform-origin: 0 100%;
border-radius: 30% 30% 0 0/100% 100% 0 0;
}
mario > u:nth-of-type(17) > u:nth-of-type(3), mario > u:nth-of-type(18) > u:nth-of-type(3) {
width: 5rem;
height: 3rem;
transform: translate3d(22rem, 19rem, 10.8rem) rotateY(45deg) rotateX(-5deg);
transform-origin: 0 0;
background: linear-gradient(to right, #c19c65, #8a5b3e, #8a5b3e);
}
mario > u:nth-of-type(17) > u:nth-of-type(3):before, mario > u:nth-of-type(18) > u:nth-of-type(3):before {
width: 5rem;
height: 5rem;
transform: translate3d(0rem, 3rem, 0rem) rotateX(-28deg);
transform-origin: 0 0;
background: linear-gradient(to right, #c19c65, #8a5b3e, #8a5b3e);
border-radius: 0 0 30% 30%/0 0 100% 100%;
}
mario > u:nth-of-type(17) > u:nth-of-type(3):after, mario > u:nth-of-type(18) > u:nth-of-type(3):after {
width: 5rem;
height: 5.05rem;
transform: translate3d(0rem, -5rem, 0rem) rotateX(33deg);
transform-origin: 0 0;
background: linear-gradient(to right, #c19c65, #8a5b3e, #8a5b3e);
transform-origin: 0 100%;
border-radius: 30% 30% 0 0/100% 100% 0 0;
}
mario > u:nth-of-type(17) > u:nth-of-type(4), mario > u:nth-of-type(18) > u:nth-of-type(4) {
width: 6rem;
height: 3rem;
transform: translate3d(16rem, 19rem, 11.6rem) rotateY(7deg) rotateX(-5deg);
transform-origin: 0 0;
background: #c19c65;
}
mario > u:nth-of-type(17) > u:nth-of-type(4):before, mario > u:nth-of-type(18) > u:nth-of-type(4):before {
width: 6rem;
height: 5rem;
transform: translate3d(0rem, 3rem, 0rem) rotateX(-28deg);
transform-origin: 0 0;
border-radius: 0 0 30% 30%/0 0 100% 100%;
background: #c19c65;
}
mario > u:nth-of-type(17) > u:nth-of-type(4):after, mario > u:nth-of-type(18) > u:nth-of-type(4):after {
width: 6rem;
height: 5.05rem;
transform: translate3d(0rem, -5rem, 0rem) rotateX(33deg);
transform-origin: 0 0;
transform-origin: 0 100%;
background: #c19c65;
border-radius: 30% 30% 0 0/100% 100% 0 0;
}
mario > u:nth-of-type(18) {
transform: translate3d(60rem, 20rem, 0) scaleX(-1);
}
mario > u:nth-of-type(18) > u:nth-of-type(1) {
background: linear-gradient(to right, #c19c65, #c2ae86, #c19c65);
}
mario > u:nth-of-type(18) > u:nth-of-type(1):before {
background: #c19c65;
}
mario > u:nth-of-type(18) > u:nth-of-type(2) {
background: #c19c65;
}
mario > u:nth-of-type(18) > u:nth-of-type(2):before {
background: #c19c65;
}
mario > u:nth-of-type(18) > u:nth-of-type(2):after {
background: #c19c65;
}
mario > u:nth-of-type(18) > u:nth-of-type(3) {
background: linear-gradient(to right, #c19c65, #c2ae86, #c19c65);
}
mario > u:nth-of-type(18) > u:nth-of-type(3):before {
background: linear-gradient(to right, #c19c65, #c2ae86, #c19c65);
}
mario > u:nth-of-type(18) > u:nth-of-type(3):after {
background: linear-gradient(to right, #c19c65, #c2ae86, #c19c65);
}
nose {
transform: translate3d(48rem, 35.5rem, 12rem) scale(0.9);
background: #c19c65;
width: 4rem;
height: 6rem;
}
nose:before {
transform: translate3d(-3rem, 0.25rem, 8rem);
background: linear-gradient(150deg, #c2ae86, #c2ae86 20%, #8a5b3e, #8a5b3e);
width: 10rem;
height: 5.5rem;
border-radius: 50%;
}
nose > u:nth-of-type(1) {
transform: translate3d(-3.9rem, -4.5rem, 2rem) rotateX(100deg) rotateY(-15deg);
background: linear-gradient(90deg, #c2ae86, #c19c65);
width: 6rem;
height: 8rem;
}
nose > u:nth-of-type(1):before {
transform: translate3d(0rem, 7rem, -1.5rem) rotateX(130deg) rotateY(0deg);
background: radial-gradient(circle at center, #bdbdbd, #c2ae86 40%, #c2ae86);
width: 6rem;
height: 4rem;
border-radius: 30% 30% 0 0/100% 100% 0 0;
}
nose > u:nth-of-type(1):after {
transform: translate3d(0.5rem, 9rem, -3.7rem) rotateX(89deg) rotateY(0deg);
background: linear-gradient(#c19c65, #c2ae86);
width: 5rem;
height: 1.9rem;
border-radius: 2rem 2rem 0.5rem 0.5rem/1.8rem 1.8rem 0.5rem 0.5rem;
}
nose > u:nth-of-type(2) {
transform: translate3d(1.9rem, -4.5rem, 2rem) rotateX(100deg) rotateY(15deg);
background: linear-gradient(90deg, #c19c65, #8a5b3e);
width: 6rem;
height: 8rem;
}
nose > u:nth-of-type(2):before {
transform: translate3d(0rem, 7rem, -1.5rem) rotateX(130deg);
background: linear-gradient(90deg, #c2ae86, #8a5b3e);
width: 6rem;
height: 4rem;
border-radius: 30% 30% 0 0/100% 100% 0 0;
}
nose > u:nth-of-type(2):after {
transform: translate3d(0.5rem, 9rem, -3.7rem) rotateX(89deg) rotateY(0deg);
background: linear-gradient(90deg, #c2ae86, #8a5b3e);
width: 5rem;
height: 1.9rem;
border-radius: 2rem 2rem 0.5rem 0.5rem/1.8rem 1.8rem 0.5rem 0.5rem;
}
nose > u:nth-of-type(3) {
transform: translate3d(-3.9rem, 2.5rem, 2rem) rotateX(80deg) rotateY(15deg);
background: #8a5b3e;
width: 6rem;
height: 8rem;
}
nose > u:nth-of-type(3):before {
transform: translate3d(0rem, 7rem, 1.5rem) rotateX(-130deg);
background: #8a5b3e;
width: 6rem;
height: 4rem;
border-radius: 30% 30% 0 0/100% 100% 0 0;
}
nose > u:nth-of-type(3):after {
transform: translate3d(0.5rem, 9rem, 3.7rem) rotateX(89deg) rotateY(0deg);
background: linear-gradient(#8a5b3e, #c19c65);
width: 5rem;
height: 1.9rem;
border-radius: 0.5rem 0.5rem 2rem 2rem/0.5rem 0.5rem 1.8rem 1.8rem;
}
nose > u:nth-of-type(4) {
transform: translate3d(1.9rem, 2.5rem, 2rem) rotateX(80deg) rotateY(-15deg);
background: #8a5b3e;
width: 6rem;
height: 8rem;
}
nose > u:nth-of-type(4):before {
transform: translate3d(0rem, 7rem, 1.5rem) rotateX(-130deg);
background: #8a5b3e;
width: 6rem;
height: 4rem;
border-radius: 30% 30% 0 0/100% 100% 0 0;
}
nose > u:nth-of-type(4):after {
transform: translate3d(0.5rem, 9rem, 3.7rem) rotateX(89deg);
background: linear-gradient(90deg, rgba(255, 255, 255, 0), #8a5b3e), linear-gradient(#8a5b3e, #c19c65);
width: 5rem;
height: 1.9rem;
border-radius: 0.5rem 0.5rem 2rem 2rem/0.5rem 0.5rem 1.8rem 1.8rem;
}
nose > u:nth-of-type(5) {
transform: translate3d(-6.3rem, -2.5rem, 2rem) rotateX(102deg) rotateY(-64deg) rotate(9deg) scaleX(1.1);
background: linear-gradient(-90deg, #c2ae86, #c19c65);
width: 3.5rem;
height: 8rem;
border-radius: 30% 30% 0 0/100% 100% 0 0;
}
nose > u:nth-of-type(5):before {
transform: translate3d(0rem, 7rem, -1.5rem) rotateX(130deg);
background: linear-gradient(-90deg, #c2ae86, #c19c65);
width: 3.5rem;
height: 4rem;
border-radius: 50% 50% 0 0/100% 100% 0 0;
}
nose > u:nth-of-type(5):after {
transform: translate3d(0.5rem, 8rem, -3.3rem) rotateX(100deg);
background: linear-gradient(137deg, #8a5b3e, #c19c65, #c2ae86);
width: 3rem;
height: 3rem;
border-radius: 50%;
}
nose > u:nth-of-type(6) {
transform: translate3d(-6.3rem, 0.5rem, 2rem) rotateX(82deg) rotateY(-118deg) rotate(-5deg) scaleX(1.1);
background: linear-gradient(-90deg, #c19c65, #c19c65 30%, #8a5b3e, #8a5b3e);
width: 3.5rem;
height: 8rem;
border-radius: 30% 30% 0 0/100% 100% 0 0;
}
nose > u:nth-of-type(6):before {
transform: translate3d(0rem, 7rem, -1.5rem) rotateX(130deg);
background: linear-gradient(-90deg, #c19c65, #c19c65, #8a5b3e, #8a5b3e);
width: 3.5rem;
height: 4rem;
border-radius: 50% 50% 0 0/100% 100% 0 0;
}
nose > u:nth-of-type(6):after {
transform: translate3d(-0.5rem, 8.3rem, -6rem) rotateX(85deg) rotateX(10deg) rotate(-19deg) skewY(-10deg);
background: linear-gradient(70deg, #8a5b3e, #c19c65, #c2ae86, #c2ae86);
width: 3rem;
height: 3.6rem;
border-radius: 20%/20%;
}
nose > u:nth-of-type(7) {
transform: translate3d(6.7rem, -2.5rem, 2rem) rotateX(102deg) rotateY(60deg) rotate(-9deg) scaleX(1.1);
background: #8a5b3e;
width: 3.5rem;
height: 8rem;
border-radius: 30% 30% 0 0/100% 100% 0 0;
}
nose > u:nth-of-type(7):before {
transform: translate3d(0rem, 7rem, -1.5rem) rotateX(130deg);
background: #8a5b3e;
width: 3.5rem;
height: 4rem;
border-radius: 50% 50% 0 0/100% 100% 0 0;
}
nose > u:nth-of-type(7):after {
transform: translate3d(0.5rem, 8rem, -3.3rem) rotateX(100deg);
background: #8a5b3e;
width: 3rem;
height: 3rem;
border-radius: 50%;
}
nose > u:nth-of-type(8) {
transform: translate3d(6.8rem, 0.5rem, 2rem) rotateX(82deg) rotateY(118deg) rotate(5deg) scaleX(1.1);
background: #8a5b3e;
width: 3.5rem;
height: 8rem;
border-radius: 30% 30% 0 0/100% 100% 0 0;
}
nose > u:nth-of-type(8):before {
transform: translate3d(0rem, 7rem, -1.5rem) rotateX(130deg);
background: #8a5b3e;
width: 3.5rem;
height: 4rem;
border-radius: 50% 50% 0 0/100% 100% 0 0;
}
nose > u:nth-of-type(8):after {
transform: translate3d(0.9rem, 8.3rem, -6rem) rotateX(85deg) rotateX(10deg) rotate(19deg);
background: linear-gradient(-68deg, #8a5b3e, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)), linear-gradient(280deg, #c19c65, rgba(255, 255, 255, 0)), linear-gradient(#c2ae86, #8a5b3e);
width: 3rem;
height: 4rem;
border-radius: 50%;
}
hair {
transform: translate3d(47rem, 41.5rem, 12rem);
}
hair > u:nth-of-type(1), hair > u:nth-of-type(1):after, hair > u:nth-of-type(1):before, hair > u:nth-of-type(2), hair > u:nth-of-type(2):after, hair > u:nth-of-type(2):before {
width: 5rem;
height: 4.5rem;
border-radius: 0 0 50% 50%;
background: #000;
}
hair > u:nth-of-type(1) {
transform: translate3d(-10rem, -4.5rem, 0) rotate(45deg) skewX(10deg);
}
hair > u:nth-of-type(1):before {
transform: translate3d(4rem, -0.5rem, 0rem) rotate(-11deg) skewX(-20deg);
width: 6rem;
}
hair > u:nth-of-type(1):after {
transform: translate3d(7rem, -2.75rem, 0rem) rotate(-37deg);
border-radius: 0 0 70% 30%;
width: 8rem;
}
hair > u:nth-of-type(2) {
transform: translate3d(11rem, -4.5rem, 0) rotate(-45deg) skewX(-10deg);
}
hair > u:nth-of-type(2):before {
transform: translate3d(-5rem, -0.5rem, 0rem) rotate(11deg) skewX(20deg);
width: 6rem;
}
hair > u:nth-of-type(2):after {
transform: translate3d(-10rem, -2.75rem, 0rem) rotate(37deg);
border-radius: 0 0 30% 70%;
width: 8rem;
}
hair > u:nth-of-type(3) {
transform: translate3d(-7rem, -15.1rem, -1.8rem) rotateX(-20deg) skewX(22deg);
border-radius: 7rem 2rem 0 0/4.5rem 4.5rem 0 0;
width: 9rem;
height: 5rem;
box-shadow: 0 -1.5rem 0 #000;
}
hair > u:nth-of-type(4) {
transform: translate3d(4rem, -15.1rem, -1.8rem) rotateX(-20deg) skewX(-22deg);
border-radius: 2rem 7rem 0 0/4.5rem 4.5rem 0 0;
width: 9rem;
height: 5rem;
box-shadow: 0 -1.5rem 0 #000;
}
hair > u:nth-of-type(5), hair > u:nth-of-type(6) {
transform: translate3d(11rem, -10rem, -17rem) rotateY(-52deg) rotateX(15deg) rotate(-27deg);
border: 5rem solid rgba(255, 255, 255, 0);
border-top: 8rem solid #511b0e;
border-left: 8rem solid #4d190d;
}
hair > u:nth-of-type(5):before, hair > u:nth-of-type(6):before {
width: 13rem;
height: 11rem;
background: #5a1e0f;
transform: translate3d(-15.2rem, -6rem, 8rem) rotateY(38deg);
transform-origin: 0 0;
}
hair > u:nth-of-type(5) > u:nth-of-type(1), hair > u:nth-of-type(5) > u:nth-of-type(2), hair > u:nth-of-type(6) > u:nth-of-type(1), hair > u:nth-of-type(6) > u:nth-of-type(2) {
transform: translate3d(-14rem, -2rem, 2rem) rotateX(-20deg) rotate(45deg);
background: #511b0e;
}
hair > u:nth-of-type(5) > u:nth-of-type(1), hair > u:nth-o.........完整代码请登录后点击上方下载按钮下载查看
网友评论0