模仿抖音数据排名交替动画效果

代码语言:html

所属分类:图表

代码描述:模仿抖音数据排名交替动画效果

代码标签: 排名 交替 动画 效果

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

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>排名特效</title>
    <style>
        body,html {
            width: 100%;
            height: 100%
        }

        .box {
            width: 100%;
            height: 40%;
            margin: 30px;
        }

        .tbox {
            width: 100%;
            height: 100%;
            border: 1px solid grey;
        }

@-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/javas.........完整代码请登录后点击上方下载按钮下载查看

网友评论0