纯css布局实现一个芭蕉树效果

代码语言:html

所属分类:布局界面

代码描述:纯css布局实现一个芭蕉树效果

代码标签: 实现 一个 芭蕉 效果

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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
:root {
  --background-color: #7BBDE5;
}

body{
  background: var(--background-color);
}

.box-canvas{
  position: relative;
  margin: auto;
  display: block;
  margin-top: 10vmin;
  margin-bottom: 10vmin;
  width: 80vmin;
  height: 80vmin;
}

.box-canvas::before {
  content: '';
  position: absolute;
  width: 80vmin;
  height: 30vmin;
  border-radius: 34% 66% 50% 78% / 56% 30% 70% 44%;
  background: yellow;
  bottom: -10vmin;
  right: 20vmin;
}

.tree {
  --tree-color: #A45B17;
  --tree-color-dark: #843C02;
  position: absolute;
  bottom: 0;
  lef.........完整代码请登录后点击上方下载按钮下载查看

网友评论0