div+css布局实现卡通女孩打坐修行练瑜伽效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css布局实现卡通女孩打坐修行练瑜伽效果代码
代码标签: div css 卡通 女孩 打坐 修行 练 瑜伽
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--p-c: #a9d1e1;
--p-c-700: #86bfd0;
--s-c: #e9fafd;
--sk-c: #f4a17f;
--h-c: #1d3443;
--sk-c-600: #bd694d;
--t-c: #fdd3bc;
--pt-c: #d15a5b;
}
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background-color: var(--p-c);
min-width: fit-content;
min-height: 600px;
position: relative;
}
img {
width: 100%;
position: absolute;
z-index: -9999;
}
main {
width: 500px;
aspect-ratio: 1;
position: relative;
animation: move 10s linear infinite;
flex-shrink: 0;
}
/* -----------------Dots------------------- */
ul {
list-style: none;
animation: balls 10s linear infinite;
}
ul > li {
position: absolute;
width: 20px;
aspect-ratio: 1;
background-color: var(--s-c);
border-radius: 50%;
}
ul > li:nth-child(3n) {
width: 10px;
height: 10px;
}
ul > li:first-child {
top: 20px;
left: 50%;
}
ul > li:nth-child(2) {
left: 115px;
top: 190px;
}
ul > li:nth-child(3) {
left: 100px;
top: 280px;
}
ul > li:nth-child(4) {
left: 50px;
top: 330px;
}
ul > li:nth-child(5) {
right: 40px;
top: 260px;
width: 15px;
}
ul > li:nth-child(6) {
right: 170px;
top: 340px;
}
ul > li:nth-child(7) {
right: 85px;
top: 160px;
width: 15px;
}
ul > li:nth-child(8) {
right: 180px;
bottom: 35px;
width: 15px;
}
ul > li:nth-child(9) {
right: 150px;
top: 185px;
}
ul > li:nth-child(10) {
left: 130px;
top: 90px;
width: 10px;
}
ul > li:nth-child(11) {
left: 40px;
top: 130px;
width: 8px;
}
/* --------------------shadow--------------------------- */
.shadow {
position: absolute;
bottom: 15px;
height: 10px;
width: 70%;
left: 50%;
transform: translateX(-50%);
border-radius: 100%;
background-color: var(--p-c-700);
}
/* -------------------------circle paths------------------------- */
.circles div {
position: absolute;
width: 290px;
height: 250px;
border: 3px soli.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0