js+css通过clip-path实现曲线折线图表效果代码
代码语言:html
所属分类:图表
代码描述:js+css通过clip-path实现曲线折线图表效果代码
代码标签: js css 通过 clip-path 实现 曲线 图表 折线
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { background-color: #333; color: #fafafa; } .mb-CashGraph { height: 140px; width: 200px; position: relative; left: 20px; margin: 20px 0; border-bottom: 1px solid #555; border-left: 1px solid #555; } .mb-CashGraph_Yaxis { position: absolute; left: -25px; top: 0; bottom: 0; width: 20px; display: grid; grid-auto-columns: auto; } .mb-CashGraph_YValue { font-size: 12px; text-align: right; position: relative; top: -7px; } .mb-CashGraph_Worm { position: absolute; width: 100%; height: 100%; transition: all 2s; background-color: orange; } </style> </head> <body translate="no"> <div class="mb-CashGraph_Outer" active=""> <div class="mb-CashGraph"> <div class="mb-CashGraph_Yaxis"> <span class="mb-CashGraph_YValue">180</span> <span class="mb-CashGraph_YValue">165</span> <span class="mb-CashGraph_YValue">150</span> <span class="mb-Cas.........完整代码请登录后点击上方下载按钮下载查看
网友评论0