div+css实现可爱猫咪抓球动画代码

代码语言:html

所属分类:动画

代码描述:div+css实现可爱猫咪抓球动画代码

代码标签: div css 可爱 猫咪 抓球 动画 代码

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

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

<head>
    <meta charset="UTF-8">
<style>
    body{
  background:black;
}
.container{
  position:relative;
  width:800px;
  height:600px;
  background:#283144;
  margin:121px auto;
  padding-top:30px;
}
.gatito{
  position:absolute;
  margin:-50px 0;
}
.circu{
  position:relative;
  width:291px;
  height:90px;
  border-radius:100%;
  background:rgba(255,255,255,.1);
  margin:390px auto;
 
}
.cat{
  position:absolute;
  display:block;
  width: 149px;
  height: 162px;
  border-radius: 50%  50%  50%  50%  / 60%   60%   40%  40%;
  background:#ccc;
  border:1px solid gray;
  border-top:3px solid gray;
  margin:-70px 70px;
  animation:baja9 3s alternate infinite;
  -moz-animation:baja9 3s alternate infinite;
  -webkit-animation: baja9 3s alternate infinite;
}
.head{
  position:absolute;
  margin:3px -5px;
  animation:baja 3s alternate infinite;
  -moz-animation:baja 3s alternate infinite;
  -webkit-animation: baja 3s alternate infinite;
}
.head7{
   position:absolute;
 display:block;
  width: 142px;
  height: 135px;
  border-radius: 50%  50%  50%  50%  / 60%   60%   40%  40%;
  background:#ccc;
  border:2px solid gray;
  margin:-192px 75px;
  
  
}
.ore{
  position:absolute;
  width:70px;
  height:90px;
  border-radius:50px 500px 50px 500px;
  background:#94948c;
  transform: rotate(12deg); 
  margin:-201px 50px;
  border:7px solid #d9d9d3;
  animation:sube3 3s alternate infinite;
  -moz-animation:sube3 3s alternate infinite;
  -webkit-animation:sube3 3s alternate infinite;
}
.ore3{
  
  position:absolute;
  width:70px;
  height:90px;
  border-radius:500px 50px 500px 50px;
  background:#94948c;
  transform: rotate(-12deg); 
  margin:-201px 158px;
  border: 7px solid #d9d9d3;
animation:sube7 3s alternate infinite;
  -moz-animation:sube7 3 alternate infinite;
  -webkit-animation:sube7 3s alternate infinite;
}
.eyes{
  position:absolute;
  width: 43px;
  height: 43px;
  border-radius: 50%  50%  50%  50%  / 60%   60%   40%  40%;
  background:white;
  border:1px solid black;
margin:50px 12px;
  
   
}
.iris{
 position:absolute;
  width:30px;
  height:30px;
  border-radius:100%;
  background:black;
  margin:0px 3px;
    animation:gira3 1s alternate infinite;
  -moz-animation:gira3 1s alternate infinite;
  -webkit-animation:gira3 1s alternate infinite;
}
iris::before{
  content.........完整代码请登录后点击上方下载按钮下载查看

网友评论0