jquery实现阅读滑动上方进度条显示效果代码

代码语言:html

所属分类:布局界面

代码描述:jquery实现阅读滑动上方进度条显示效果代码

代码标签: 滑动 上方 进度 显示 效果

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

<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="UTF-8">



    <style>
@import url(https://fonts.googleapis.com/css?family=Merriweather:400,700,400italic);
        /* Try setting this to true :) */
        html {
            font-size: 70%;
        }

        body {
            height: 100%;
            max-height: 100%;
            font-family: Merriweather,Georgia, serif;
            font-size: 1.8rem;
            line-height: 1.8em;
            color: #3A4145;
            background: #fff;
            width: 100%;
            opacity: 0;
            -webkit-animation: in 0.8s ease 1s forwards;
            -moz-animation: in 0.8s ease 1s forwards;
            animation: in 0.8s ease 1s forwards;
        }

        span {
            content: '';
            height: 5px;
            position: fixed;
            left: 0;
            width: 0%;
            background: #F84BA2;
        }

        ::selection {
            color: #fff;
            background: #F84BA2;
            text-shadow: none;
        }

        p {
            margin: 1.6em 0;
        }

        hr {
            margin: 2em 0;
            text-align: center;
            line-height: 1px;
            height: 1px;
            background: #ddd;
            border: 15px solid #fff;
            border-left: 0;
            border-right: 0;
            font-size: 1.5em;
        }
        hr:after {
            content: attr(txt);
            color: #ddd;
            display: inline;
            background: #fff;
            padding: .2em .5em;
            border: 1px solid #fff;
            border-radius: 100px;
            transition: .3s ease all;
        }
        hr:before {
            position: absolute;
            content: '';
            background: transparent;
            border-spacing: 10px;
            margin-top: -24px;
            -webkit-transform: scale(0.5);
            -moz-trans.........完整代码请登录后点击上方下载按钮下载查看

网友评论0