css布局实现一个女孩跳绳动画效果代码

代码语言:html

所属分类:动画

代码描述:css布局实现一个女孩跳绳动画效果代码

代码标签: 一个 女孩 跳绳 动画 效果

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

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

<head>

  <meta charset="UTF-8">
  

  
  
<style>
:root {
  --skin: #f2b383;
  --border: #483b55;
  --tshirt1: teal;
  --tshirt2: tomato;
  --shadow: #483b5555;
  --bg: wheat;
  --duration: 0.5s;
}

*,
*:after,
*:before {
  box-sizing: border-box;
}

*:after,
*:before {
  content: "";
}

.me *,
.me *:after,
.me *:before {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
}

body {
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  background: var(--bg);
  color: var(--border);
  overflow: hidden;
}

.body {
  background: var(--skin);
}

.illustration {
  position: relative;
  height: 100vh;
  z-index: 1;
  margin: auto;
  top: 0;
}
.illustration:before {
  content: "";
  background: var(--border);
  width: 30vh;
  height: 1vh;
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  bottom: 22vh;
  border-radius: 50%;
  opacity: 0.6;
  animation: hopshadow var(--duration) infinite ease-in;
}

.me {
  animation: hop var(--duration) infinite ease-in;
}

.head {
  border-bottom: none;
  background-position: top left;
  top: 14vh;
  height: 14.5vh;
  width: 11vh;
  border-radius: 50% 40% 0 0;
  z-index: 2;
  transform-origin: center bottom;
}

.hair {
  border-radius: 50% 50% 0 0/60% 60% 0 0;
  background: var(--.........完整代码请登录后点击上方下载按钮下载查看

网友评论0