gsap实现三维数据参数对比柱状图效果代码
代码语言:html
所属分类:图表
代码描述:gsap实现三维数据参数对比柱状图效果代码头效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/jquery-ui-1.11.0.min.css">
<style>
body {
background-image: -webkit-gradient(linear, left top, right top, from(#005872), to(#a63c92));
background-image: linear-gradient(toright, #005872, #a63c92);
}
body,
html {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
#slider {
width: 300px;
position: relative;
margin: 30px auto;
}
.container {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
width: 1313px;
height: 679px;
}
svg {
width: 100%;
height: 100%;
visibility: hidden;
}
.sans-semi {
font-family: "open-sans", sans-serif;
font-weight: 600;
font-style: normal;
}
.sans-light {
font-family: 'open-sans', sans-serif;
font-weight: 300;
font-style: normal;
}
.totals-base {
visibility: hidden;
}
</style>
</head>
<body>
<!-- <div id="slider"></div> -->
<div class="container">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1315.22 679">
<defs>
<linearGradient id="linear-gradient" x1="842" y1="501" x2="1315.22" y2="501" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#77578f" />
<stop offset="1" stop-color="#995095" />
</linearGradient>
<linearGradient id="linear-gradient-2" x1="988.22" y1="584" x2="1315.22" y2="584" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#8a5996" />
<stop offset="1" stop-color="#a45499" />
</linearGradient>
<linearGradient id="linear-gradient-3" x1="494.73" y1="551" x2="494.73" y2="451" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#e6f1f3" />
<stop offset="1" stop-color="#b8cfd6" />
</linearGradient>
<linearGradient id="linear-gradient-4" x1="823.47" y1="551" x2="823.47" y2="451" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#d03392" />
<stop offset="1" stop-color="#a73d91" />
</linearGradient>
<mask id="base-mask">
<rect class="base-mask" x="331" y="451" width="656" height="0" fill="white" />
</mask>
<mask id="bars-mask">
<rect class="bars-mask" x="296" y="50" width="726" height="401" fill="white" />
</mask>
<mask id="sidebars-mask">
<rect class="sidebars-mask" x="2" y="451" width="1313" height="0" fill="white" />
</mask>
</defs>
<title>Total Followers</title>
<g class="vs">
<path class="fvs-base" d="M661.5,20.88A16.5,16.5,0,1,1,645,37.38,16.5,16.5,0,0,1,661.5,20.88Z" transform="translate(0)" fill="#fff" fill-rule="evenodd" />
<text class="sans-semi" transform="translate(652.3 42.83)" font-size="18" fill="#014b62">vs</text>
</g>
<g class="fmain-bars" mask="url(#bars-mask)">
<path class="fback-l" d="M296.22,267l90-50,90,50V451h-180Z" transform="translate(0)" fill="#436387" fill-rule="evenodd" />
<path class="fback-r" data-name="back" d="M1022,218l-90-50-90,50V451h180Z" transform="translate(0)" fill="#875994" fill-rule="eve.........完整代码请登录后点击上方下载按钮下载查看
网友评论0