仙人掌植物盆栽ui布局特效

css3绘制桌面上的4盆仙人掌植物摆放布局,盆栽植物ui特效。 在这里插入图片描述html代码

<body>
<div class="plants">
  <div class="plant ">
    <div class="leaves plant-1">
      <div class="limb"></div>
    </div>
  </div>
  <div class="plant plant-2">
    <div class="leaves plant-2">
    </div>
  </div>
  <div class="plant">
    <div class="leaves plant-3">
    </div>
  </div>
  <div class="plant plant-2">
    <div class="leaves plant-4">
    </div>
  </div>
</div>
</body>

css代码

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*:before,
*:after {
  content: "";
  position: absolute;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

html,
body {
  height: 100%;
  width: 100%;
  background: #dbf4d4;
}

.plants {
  height: 80vh;
  width: 80em;
  max-width: 80%;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: row;
}
@media only screen and (max-width: 48em) {
  .plants {
    flex-wrap: wrap;
    height: 100%;
  }
}

.plant {
  position: relative;
  width: 25%;
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.plant:before {
  width: 6.25em;
  height: 3.75em;
  top: calc(52vh - 3.75em);
  background: #b86112;
  border-radius: 0 0 40px 40px;
  background-image: linear-gradient(to bottom, transparent 1em, #a6580d 1em, #a6580d 1.5em, transparent 1.5em);
  box-shadow: 0.8em 0 #c4dbbe, 0 -0.1em #c06b46;
  z-index: 100;
}
.plant:after {
  width: 100%;
  height: 0.75em;
  top: 52vh;
  background: #bf6a45;
  box-shadow: #c06b46 0 0.75em 0px -0.4em, #c4dbbe 0 0.5em 0 0, #c4dbbe 0 1.25em 0 0;
}
@media only screen and (max-width: 48em) {
  .plant {
    width: 50%;
  }
  .plant:after {
    bottom: 4em;
  }
}

.leaves {
  position: absolute;
  background: #568515;
  box-shadow: 0.8em 0 #c4dbbe;
}
.leaves.plant-1 {
  width: 2.4em;
  height: 8.8em;
  top: calc(52vh - 3.75em - 8.8em);
  border-radius: 4em 4em 0 0;
  background-image: repeating-linear-gradient(to right, #4e7816, #4e7816 0.3em, transparent 0.3em, transparent 0.6em);
}
.leaves.plant-1:before {
  width: 2em;
  height: 5.6em;
  top: 1.6em;
  left: -2.8em;
  background: inherit;
  border-radius: 4em 4em 0 4em;
  z-index: -1;
  background-image: inherit;
  box-shadow: inherit;
}
.leaves.plant-1:after {
  width: 1em;
  height: 2em;
  top: 5.2em;
  left: -1em;
  background: inherit;
  z-index: -1;
}
.leaves.plant-2 {
  width: 5.6em;
  height: 5.6em;
  top: calc(52vh - 3.75em - 4.8em);
  border-radius: 50%;
  background-size: 1.2em 1.2em, 1.2em 1.2em, 5.6em 5.6em;
  background-image: radial-gradient(1em 4.8em at center, #ebf9d6 3%, transparent 3%), radial-gradient(4.8em 1em at center, #ebf9d6 3%, transparent 3%), radial-gradient(5.6em 15em at center, transparent 18%, #4e7816 18%, #4e7816 40%, transparent 40%);
}
.leaves.plant-3 {
  width: 4em;
  height: 5.6em;
  top: calc(52vh - 3.75em - 4.8em);
  border-radius: 50% 50% 50% 50%;
  background-size: 0.8em 1em, 4em 4em;
  background-image: radial-gradient(#ebf9d6 6%, #fdfefa 6%, transparent 16%), linear-gradient(to right, #4e7816 2em, transparent 2em);
}
.leaves.plant-3:before {
  width: 4em;
  height: 5.6em;
  background: inherit;
  border-radius: inherit;
  transform: translate(80%, -25%) rotate(45deg) scale(0.75);
  box-shadow: inherit;
}
.leaves.plant-3:after {
  width: 4em;
  height: 5.6em;
  background: inherit;
  border-radius: inherit;
  transform: translate(90%, -75%) rotate(16deg) scale(0.45);
  z-index: -1;
  box-shadow: inherit;
}
.leaves.plant-4 {
  width: 3.6em;
  height: 8.4em;
  top: calc(52vh - 3.75em - 8.4em);
  border-radius: 50% 50% 0 0;
  background: #568515;
  background-image: repeating-linear-gradient(to right, transparent, transparent 0.8em, #4e7816 0.8em, #4e7816 1.1em, transparent 1.1em);
}
.leaves.plant-4:after {
  width: 2.8em;
  height: 4.8em;
  bottom: 0;
  left: -0.8em;
  border-radius: 48% 48% 0 0;
  background: #77aa2f;
  box-shadow: 0.4em 0 1.2em #4e7816;
  background-image: inherit;
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
资源包主要包含以下内容: ASP项目源码:每个资源包中都包含完整的ASP项目源码,这些源码采用了经典的ASP技术开发,结构清晰、注释详细,帮助用户轻松理解整个项目的逻辑和实现方式。通过这些源码,用户可以学习到ASP的基本语法、服务器端脚本编写方法、数据库操作、用户权限管理等关键技术。 数据库设计文件:为了方便用户更好地理解系统的后台逻辑,每个项目中都附带了完整的数据库设计文件。这些文件通常包括数据库结构图、数据表设计文档,以及示例数据SQL脚本。用户可以通过这些文件快速搭建项目所需的数据库环境,并了解各个数据表之间的关系和作用。 详细的开发文档:每个资源包都附有详细的开发文档,文档内容包括项目背景介绍、功能模块说明、系统流程图、用户界面设计以及关键代码解析等。这些文档为用户提供了深入的学习材料,使得即便是从零开始的开发者也能逐步掌握项目开发的全过程。 项目演示与使用指南:为帮助用户更好地理解和使用这些ASP项目,每个资源包中都包含项目的演示文件和使用指南。演示文件通常以视频或图文形式展示项目的主要功能和操作流程,使用指南则详细说明了如何配置开发环境、部署项目以及常见问题的解决方法。 毕业设计参考:对于正在准备毕业设计的学生来说,这些资源包是绝佳的参考材料。每个项目不仅功能完善、结构清晰,还符合常见的毕业设计要求和标准。通过这些项目,学生可以学习到如何从零开始构建一个完整的Web系统,并积累丰富的项目经验。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值