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: .........完整代码请登录后点击上方下载按钮下载查看

网友评论0