css实现工作中的缝纫机动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现工作中的缝纫机动画效果代码

代码标签: css 工作中 缝纫机 动画

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

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

<head>

  <meta charset="UTF-8">

  
  
  
<style>
*, *::before, *::after {
  margin: 0;
  content: "";
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #E9F3FF;
  transform: scale(1.15);
}

.sewing-stuff {
  width: 450px;
  align-items: flex-end;
  justify-content: space-around;
  transform: translateY(-3px);
  display: flex;
}

.table {
  height: 15px;
  width: 450px;
  background-color: #f1dbc1;
  border-bottom: 5px solid #5796e9;
}

.tape-top {
  height: 11px;
  width: 34px;
  border-radius: 2px 0 0 1px;
  background-color: #fdf4a3;
  box-shadow: 0 2.75px #fdde51;
}
.tape-top::before, .tape-top::after {
  position: absolute;
}
.tape-top::before {
  height: 5.5px;
  width: 34px;
  background-image: repeating-linear-gradient(to right, transparent, transparent 11%, #5796e9 11%, #5796e9 16%);
}
.tape-top::after {
  height: 0;
  width: 0;
  border-style: solid;
  border-width: 14.3px 0 0 14.3px;
  border-color: transparent transparent transparent #fdde51;
  margin-left: 34px;
}

.tape-bottom {
  height: 49.3px;
  width: 11px;
  position: absolute;
  background-color: #fdf4a3;
  margin-left: 34px;
  margin-top: 3.3px;
  box-shadow: 2.75px 0 #fdde51;
}
.tape-bottom::before, .tape-bottom::after {
  content: "";
  position: absolute;
}
.tap.........完整代码请登录后点击上方下载按钮下载查看

网友评论0