css实现开关拼凑圣诞树效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现开关拼凑圣诞树效果代码

代码标签: css 开关 拼凑 圣诞树

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

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

<head>
  <meta charset="UTF-8">
  
  
  
  
  
<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
#container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#container {
  background-color: #1a1d2e;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.star {
  width: 50px;
  aspect-ratio: 1;
  background: #d68910;
  clip-path: polygon(50% 0, 79% 90%, 2% 35%, 98% 35%, 21% 90%);
}

.level {
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle {
  width: 30px;
  height: 30px;
  background-color: aliceblue;
  border-radius: 50%;
  margin: 5px.........完整代码请登录后点击上方下载按钮下载查看

网友评论0