jquery+css实现数据可视化排名动画效果代码

代码语言:html

所属分类:图表

代码描述:jquery+css实现数据可视化排名动画效果代码

代码标签: 可视化 排名 动画 效果

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

<!doctype html>

<html>

<head>

    <meta charset="utf-8">
    <style>
        body,html {
            width: 100%;
            height: 100%;

        }
        .box {
            width: 40%;
            height: 40%;
            margin: 30px auto;
        }
        .tbox {
            width: 100%;
            height: 100%;
            border: 1px solid blue;
        }
@-webkit-keyframes dowm {
            from {
                position: relative;
                top: 0;
            }

            to {
                position: relative;
                top: 50px;
            }
        }
@-webkit-keyframes up {
            from {
                position: relative;
                top: 0;
            }

            to {
                position: relative;
                top: -50px;
            }
        }
        .dowm {
            -webkit-animation: dowm 1s linear;
            animation: dowm 1s linear;
            -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
        }
        .up {
            -webkit-animation: up 1s linear;
            animation: up 1s linear;
            -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
        }
    </style>
</head>



<body>
    <div class="box">
        <div class="tbox" id="tbox">
        </div>
    </div>


    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-3.2.1.min.js"></script>
    <script type="text/javascript">; (function($) {

        function getId(length) {
            return Number(Math.random().toString().substr(3, length) + Date.now()).toString(36);
        }
        function compare(property) {
            return function(a, b) {
                var value1 = a[property].........完整代码请登录后点击上方下载按钮下载查看

网友评论0