css+scene实现跳动小白兔动画效果代码

代码语言:html

所属分类:动画

代码描述:css+scene实现跳动小白兔动画效果代码

代码标签: css scene 跳动 小白兔 动画

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

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

<head>
  <meta charset="UTF-8">
  


  
  
<style>
.cony {
	position: absolute;
	width: 400px;
  left: 100px;
  top: 100px;
    
}
.cony .ear {
	position: absolute;
	top:-15px;
	height: 10px;
	width: 10px;
	left: 0;
	right: 0;
	margin: auto;
}
.cony .ear:before,.cony .ear:after {
	content:"";
	position: absolute;
	width: 35px;
	height: 120px;
	background: #FCBFCA;
	border-radius: 60% 40% 50% 50% / 50%;
	border:3px solid #333;
	top: -55px;
	box-shadow:#fff 0px 0px 0px 6px inset;
}
.cony .ear:before {
	transform: rotate(-5deg);
	left: -45px;
}
.cony .ear:after {
	transform: rotate(5deg);
	right: -45px;
}
.cony .head {
	position: absolute;
	width: 210px;
	height:190px;
	border-radius: 50%;
	box-sizing: border-box;
	left: 0;
	right: 0;
	margin: auto;
	border: 3px solid black;
	background: #fff;
    transform: rotate(15deg)
    
}
.cony .head:before {
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	left: 0;
	top: 0;
	content: "";
	background: inherit;
	z-index: 1;
}
.cony .face {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 2;
}
.cony .face-content {
    position: absolute;
    width: 100%;
    height: 100%;
    left: -4%;
}
.cony .cheek {
	position: absolute;
	width: 40px;
	height: 25px;
	background: #FDDBD9;
     background: radial-gradient(RGBA(253, 163, 155, 1.00), RGBA(253, 163, 155, 0.5), RGBA(253, 163, 155, 0) 70%);
	border-radius: 50%;
	top:50%;	
}
.cony .cheek.left {
    left:15%;
}
.cony .cheek.right {
	right:15%;
}
.cony .mouth-outline {
	position: absolute;
	width: 40px;
	height: 45px;
	top:45%;
	left: 0;
    right: 0;
    margin: auto;
}
.cony .nose {
	position: absolute;
	margin:auto;
    top: 45%;
    left: 0px;
    right: 0px;
	width: 12px;
	height: 12px;
    border-radius: 50%;
    border: 3px solid black;
}
.cony .nose-line {
	background: #333;
	height: 12px;
	width: 3px;
	position: absolute;
	left: 0;
	right: 0;
    top: 100%;
	margin: auto;
}
.cony .mouth {
	position: absolute;;
	width: 40px;
	height: 32px;
    
	left: 0px;
	
    top:58%;
    left: 0;
    right: 0;
    margin: auto;
    z-index: -1;
}
.cony .mouth-mask {
    position: absolute;
    content: "";
    width: 100%;
    height: 5px;
    bottom: 100%;
    margin-bottom: -5px;
    
    
    background: #fff;
    z-index: 2;
    border-radius: 50% / 0px 0px 100% 100%;
    border: 3px solid black;
    border-top: 0;
    box-sizing: border-box;
    
}
.cony .mouth .inner {
    position: absolute;
    width: 100%;
    height: 100%;
	border-radius:50% / 100%;
	border-top-left-radius: 0px;
	border-top-right-radius: 0px;
	background: #D73E34;
    border: 3px solid black;
    border-top: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.cony .mouth .inner:before {
	position: absolute;
	content: "";
	width: 40px;
	height: 15px;
	border-radius: 50%;
	background: #F89A8C;
	bottom:-1px;
	left:50%;
	margin-left:-20px;
}



.cony .impassive .mouth.border {
	border:none;
}
.cony .impassive .mouth {
	position: relative;
	width: 2px;
	height: 2px;
	left: 0px;
	top:-1px;
}
.cony .impassive .mouth:before, .impassive .mouth:after {
	position:absolute;
	content: "";
	top:0;
	left:-1;
	transform-origin: 50% 0%;
	-moz-transform-origin: 50% 0%;
	-ms-transform-origin: 50% 0%;
	-o-transform-origin: 50% 0%;
	-webkit-transform-origin: 50% 0%;
	
	transform: rotate(30deg);
	background: #333;
	height: 12px;
	width: 3px;
	border-radius: 1px;
}
.cony .impassive .mouth:after {
	transform: rotate(-40deg);
}
.cony .body {
	position: absolute;
	width: 100px;
	box-sizing: border-box;
	
	left: 0;
	right: 0;
	top: 160px;
	margin: auto;
		position: absolute;
	left:-5px;
	width: 100px;
	height: 130px;
	border:3px solid #333;
	
	border-radius: 0% 0% 50% 50% / 0px 0px 10% 10%;
	box-sizing: border-box;
	background: #fff;
	z-index: -1;
    
    transform-origin: 50% 0px;
    transform:rotate(-5deg)
}
.cony .body:before {
	position: absolute;
	background: inherit;
	border-radius: inherit;
	width: 100%;
	height: 100%;
	content: "";
	left:0;
	right: 0;
	z-index: 3;
}
.cony .mask {

	position: absolute;
	width: 90%;
	height: 40px;
	top:0px;
	background: #fff;
	
	left: 0;
	right: 0;
	margin: auto;
	z-index: 3;
}
.cony .arm {
	position: absolute;
	width: 40px;
	height: 100px;
	top:1px;
	border-radius: 50% / 0% 0% 70% 70%;	
	transform-origin: 50% 20px;
	transform: rotate(130deg);

	background: #fff;
	border: 3px solid #333;
    border-top: 0;
	z-index: 2;
}

.cony .arm.left {
	left:-25px;
}
.cony .arm.right {
	right:-25px;
	transform: rotate(-130deg)
}
.cony .legs {
	position: absolute;
	top:90%;
	width: 100%;
	z-index: 0;
}
.cony .leg {
	position: absolute;
	width: 47px;
	
	top:-20px;

	transform-origin: 50% 0%;
	-moz-transform-origin: 50% 0%;
	-ms-transform-origin: 50% 0%;
	-o-transform-origin: 50% 0%;
	-webkit-transform-origin: 50% 0%;
	
	border-top: none;
	background: #fff;
	border-radius: 0px 0px 20% 20%;
}

.cony .shank, .cony .joint, .cony .femur {
    border-left: 3px solid #333;
    border-right: 3px solid #333;
    width: 100%;
    position: absolute;
    background: #fff;
    left: -3px;
}
.cony .femur {
    padding-top: 30px;
    height: 23.5px;
    left: 0;
    transform-origin: 50% 23.5px;
    border-top-left-radius: 50% 23.5px;
    border-top-right-radius: 50% 23.5px;
}
.cony .femur:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: inherit;
    top: 0;
    border-radius: inherit;
}
.cony .joint {
    border: 3px solid #333;
    width: 100%;
    height: 47px;
    border-radius: 50%;
}

.cony .shank {
    top: 50%;
    height: 45px;
    transform-origin: 50% 0px;
}
.cony .shank:after {
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	background: inherit;
	z-index: 2;
}
.cony .leg.left {
	left:-3px;
}
.cony .leg.right {
	right:3px;
	z-index: 3;
}
.cony .foot{
	position: absolute;
	content: "";
	width: 130%;
	height: 50px;
	border:3px solid #333;
	border-radius: 50%;
	bottom: -20px;
	right:-12%;
	background: inherit;
	transform-origin: 70% 50%;
	transform: rotate(-20deg);
}
.cony .legRight .femur {
    transform: rotate(30deg);
}

.cony .eyebrows {
    position: absolute;
    top: -30px;
    width: 100%;
}
.cony .eyebrow {
    position: absolute;
    width:30px;
    height: 20px;
    overflow: hidden;
}
.cony .eyebrow:before {
    content: "";
    position: absolute;
    width: 300%;
    height: 300%;
    border: 2px solid black;
    
    box-sizing: border-box;
    border-radius: 50%;
    bottom: 0px;
}

.cony .eyebrow.left:before {
    left:-50px;
}
.cony .eyebrow.right:before {
    right: -50px;
    
}

.eyes.dot {
    position: absolute;
    top:35%;
    width: 100%;
}
.eye.........完整代码请登录后点击上方下载按钮下载查看

网友评论0