css实现自动自行车骑行动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现自动自行车骑行动画效果代码

代码标签: css 自动 自行车 骑行 动画

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

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
<style>
    body, .bike {
  display: flex;
  justify-content: center;
  align-items: center;
}

body {
  background: #7c606b;
  margin: 0;
  height: 100vh;
}

.bike {
  position: relative;
  height: 100%;
  width: 700px;
  min-height: 700px;
  min-width: 700px;
  max-height: 700px;
  max-width: 700px;
}

.frame {
  /* main bike frame */
  position: absolute;
  top: 35.7%;
  left: 35.7%;
  height: 200px;
  width: 200px;
  box-sizing: border-box;
  background: transparent;
  border-left: 10px solid #fcbcb8;
  border-right: 10px solid #fcbcb8;
  transform: rotate(-25deg);
  background-image: linear-gradient(-30deg, transparent 21%, #fcbcb8 21%, #fcbcb8 25%, transparent 25%), linear-gradient(180deg, transparent 45%, #fcbcb8 45%, #fcbcb8 50%, transparent 50%);
  .........完整代码请登录后点击上方下载按钮下载查看

网友评论0