react实现平行四边形背景效果代码

代码语言:html

所属分类:背景

代码描述:react实现平行四边形背景效果代码

代码标签: react 平行 四边形 背景

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

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

<head>
  <meta charset="UTF-8">
  

  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

body {
  align-items: center;
  background: #404045;
  color: #EEE;
  display: flex;
  font-family: "Nunito", sans-serif;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
}
.container {
/*   height: 20vh; */
  padding: 20px 100px;
  position: relative;
  width: 50vw;
}
.container .svg {
  left: 0;
  position: absolute;
  top: 0;
}
.container .content {
  position: relative;
  z-index: 1;
}
.testing {
  fill: #223;
  filter: drop-shadow( 3px 3px 0px rgba(255,100,100,.5));
}
</style>



  
  
</head>

<body translate="no">
  <div id="root"></div>


<svg
  width="0"
  height="0"
  preserveAspectRatio="none"
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0