首页 » 收集 » 正文内容
bilibili右下角返回顶部按钮样式源代码
寻梦xunm| 702| 收集
3年前
超过1201天 温馨提示
本文最后更新于2021年06月07日,已超过1201天没有更新,若内容或图片失效,请留言反馈。

bilibili右下角返回顶部按钮样式源代码

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style>
            .back-to-top {
                background-image: url("https://cdn.jsdelivr.net/gh/cetr/cdn@master/blog/img/space-to-top.png");
                width: 62px;
                height: 88px;
            }

            .back-to-top:hover {
                animation: to-top-fly .4s steps(1) infinite;
            }

            @keyframes to-top-fly {
                0% {
                    background-position-x: -142.5px;
                }

                16.5% {
                    background-position-x: -284.5px;
                }

                33% {
                    background-position-x: -429.5px;
                }

                49.5% {
                    background-position-x: -570.5px;
                }

                66% {
                    background-position-x: -714.5px;
                }

                82.5% {
                    background-position-x: -856.5px;
                }

                100% {
                    background-position-x: 0px;
                }
            }
        </style>
    </head>
    <body>
        <div class="back-to-top"></div>
    </body>
</html>
none
0 赞 or 打赏
喜欢就打赏一点
微信 支付宝
隐私
Q Q:1340326824
邮箱:vipshiyi@qq.com
QQ群:422720328

我的音乐

微博客-专为自己编写开发的源码