单个div+css实现店铺关门悬挂折纸牌效果代码

代码语言:html

所属分类:布局界面

代码描述:单个div+css实现店铺关门悬挂折纸牌效果代码

代码标签: 单个 div css 店铺 关门 悬挂 折纸

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


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

<head>

  <meta charset="UTF-8">
  

  
  
<style>
body {
  min-height: 320px;
  height: 100vh;
  position: relative;
  background-color: #191970;
}
div {
  position: absolute;
  left: 50%;
  top: 50%;
}
div::before,
div::after {
  display: block;
  content: '';
  position: absolute;
}
@media (max-width: 400px) {
  div:not(.no-scale) {
    transform: scale(0.8);
  }
}
#pun {
  width: 380px;
  height: 380px;
  margin-left: -190px;
  margin-top: -190px;
  background: linear-gradient(130deg, rgba(255,255,255,0) 49.5%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.6) 50.5%, rgba(255,255,255,0) 51%) 38% 41%/5em 6em, linear-gradient(-130deg, rgba(255,255,255,0) 49.5%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.6) 50.5%, rgba(255,255,255,0) 51%) 62% 41%/5em 6em;
  background-repeat: no-repeat;
}
#pun::before {
  width: 334px;
  height: 98px;
  left: 50%;
  bottom: 20%;
  margin-left: -167px;
  background: linear-gradient(-45deg, rgba(255,255,255,0) 32.7%, white 33%) 42px 55.9px/14px 28px, linear-gradient(to left, rgba(0,0,0,0.2), rgba(0,0,0,0) 25%) 14px 69.9px /28px 14px, linear-gradient(45deg, rgba(255,255,255,0) 32.7%, white 33%) 14px 69.9px /28px 14px, linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0) 25%) 14px 14px/14px 56px, linear-gradient(138deg, rgba(255,255,255,0) 17.9%, white 18.2%) 14px 14px/14px 56px, linear-gradient(-138deg, rgba(255,255,255,0) 30.5%, white 30.8%) 41.9px 14px/14px 28px, linear-gradient(to right, #aaa, white 35%, white 65%, #aaa) 27.9px 14px/14px 14px, linear-gradient(45deg, rgba(255,255,255,0) 29.7%, white 30%) 70px 69.9px /32.199999999999996px 14px, linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0) 25%) 70px 14px/14px 56px, linear-gradient(white, white) 70px 14px/14px 56px, linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0) 25%) 125.9px 14px /28px 14px, linear-gradient(-138deg, rgba(255,255,255,0) 34.5%, white 34.8%) 125.9px 14px /28px 14px, linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0) 25%) 140px 27.9px/14px 56px, linear-gradient(-45deg, rgba(255,255,255,0) 20%, white 20.3%) 140px 27.9px/14px 56px, linear-gradient(to left, rgba(0,0,0,0.2), rgba(0,0,0,0) 25%) 112px 69.9px /28px 14px, linear-gradient(45deg, rgba(255,255,255,0) 32.7%, white 33%) 112px 69.9px /28px 14px, linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0) 25%) 112px 14px/14px 56px, linear-gradient(138deg, rgba(255,255,255,0) 17.9%, white 18.2%) 112px 14px/14px 56px, linear-gradient(135deg, rgba(255,255,255,0) 39%, white 39.3%) 168px 14px /21px 14px, linear-gradient(-135deg, rgba(255,255,255,0) 39%, white 39.3%) 188.9px 14px /21px 14px, linear-gradient(45deg, rgba(255,255,255,0) 24.7%, .........完整代码请登录后点击上方下载按钮下载查看

网友评论0