<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>3d柱状图</title>
</head>
<style>
.cube-warper {
position: relative;
width: 30px;
height: 400px;
transform-style: preserve-3d;
transform: rotateX(-30deg) rotateY(45deg);
}
.cube-box {
width: 30px;
height: 400px;
position: absolute;
left: 20px;
bottom: 0;
transition: .5s all;
}
.cube-box1 {
left: 20px;
}
.cube-box2 {
left: 150px;
bottom: -45px;
}
.cube-box3 {
left: 280px;
bottom: -90px;
}
.cube {
position: absolute
简单的css3d柱状图
最新推荐文章于 2024-05-12 17:24:39 发布