div+css实现单个div布局绘制大嘴巴红唇花效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css实现单个div布局绘制大嘴巴红唇花效果代码

代码标签: css 单个 div布局 绘制 大嘴巴 红唇

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

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

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

  
  
<style>
body {
  min-height: 350px;
  height: 100vh;
  position: relative;
  background-color: #2b3618;
  text-align: center;
}
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);
  }
}
#alive {
  width: 18em;
  height: 18em;
  margin-left: -9em;
  margin-top: -9em;
  background: radial-gradient(circle, #006400 50%, rgba(0,100,0,0) 50.5%) 42% 74%/2em 2em, radial-gradient(circle, #006400 50%, rgba(0,100,0,0) 50.5%) 50% 76%/2em 2em, radial-gradient(circle, #006400 50%, rgba(0,100,0,0) 50.5%) 58% 74%/2em 2em, linear-gradient(45deg, transparent 10%, #228b22 10%) 32% 81%/20% 0.1em, linear-gradient(-45deg, transparent 10%, #228b22 10%) 68% 81%/20% 0.1em, radial-gradient(ellipse at 50% 120%, #32cd32 50%, rgba(50,205,50,0) 50.5%) 19% 81%/50% 8%, radial-gradient(ellipse at 50% -20%, #32cd32 50%, rgba(50,205,50,0) 50.5%) 18.5% 89.5%/40% 8%, radial-gradient(ellipse at 50% 120%, #32cd32 50%, rgba(50,205,50,0) 50.5%) 81% 81%/50% 8%, radial-gradient(ellipse at 50% -20%, #32cd32 50%, rgba(50,205,50,0) 50.5%) 81.5% 89.5%/40% 8%, radial-gradient(ellipse at 0 100%, rgba(50,205,50,0) 60%, #32cd32 60.3%) 38% 100%/20% 50%, radial-gradient(ellipse at 100% 100%, rgba(50,205,50,0) 60%, #32cd32 60.3%) 62% 100%/20% 50%, radial-gradient(ellipse, #006400 50%, rgba(0,100,0,0) 50.5%) 50% -50%/100% 80%, radial-gradient(ellipse, #228b22 50%, rgba(34,139,34,0) 50.5%) 10% 45%/60% 65%, radial-gradient(ellipse, #228b22 50%, rgba(34,139,34,0) 50.5%) 90% 45%/60% 65%;
  background-repeat: no-repeat;
}
#alive::before {
  width: 12em;
  height: 12em;
  left: 50%;
  margin-left: -6em;
  top: 1em;
  background: radial-gradient(ellipse at 50% 120%, rgba(220,20,60,0) 65%, #dc143c 65.5% 77%, rgba(220,20,60,0) 77%) 50% 46%/72% 20%, radial-gradient(ellipse at 50% -20%, rgba(220,20,60,0) 66%, #dc143c 66.5% 78%, rgba(220,20,60,0) 78%) 50% 66%/72% 16%, radial-gradient(ellipse at 50% 0, white 50%, rgba(255,255,255,0) 50.5%) 28% 47%/1.5em 1.5em, radial-gradient(ellipse at 50% 0, white 50%, rgba(255,255,255,0) 50.5%) 42% 44%/1.5em 1.5em, radial-gradient(ellipse at 50% 0, white 50%, rgba(255,255,255,0) 50.5%) 57% 44%/1.5em 1.5em, radial-gradient(ellipse at 50% 0, white 50.........完整代码请登录后点击上方下载按钮下载查看

网友评论0