CSS实现Loading效果

2023七夕4 广告|星球视频

 

有没有遇到过打开页面加载一段时间,页面内容才加载出来。在等待加载的过程中页面却是空白页,给用户的体验特别不好,会让项目降一个档次。下面的十六种炫酷炸裂的css加载动画,会让你在等待的过程中,体验视觉盛宴,给用户不一般的加载体验,对,就是纯css3的炫酷加载动画,请看效果!

CSS实现Loading效果
第1种效果

html

<div class="loading">
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
</div>

css

.loading{
            width: 80px;
            height: 40px;
            margin: 0 auto;
            margin-top:100px;
        }
        .loading span{
            display: inline-block;
            width: 8px;
            height: 100%;
            border-radius: 4px;
            background: lightgreen;
            -webkit-animation: load 1s ease infinite;
        }
        @-webkit-keyframes load{
            0%,100%{
                height: 40px;
                background: lightgreen;
            }
            50%{
                height: 70px;
                margin: -15px 0;
                background: lightblue;
            }
        }
        .loading span:nth-child(2){
            -webkit-animation-delay:0.2s;
        }
        .loading span:nth-child(3){
            -webkit-animation-delay:0.4s;
        }
        .loading span:nth-child(4){
            -webkit-animation-delay:0.6s;
        }
        .loading span:nth-child(5){
            -webkit-animation-delay:0.8s;
        }

文章版权归作者所有,未经允许请勿转载。

给TA打赏
共{{data.count}}人
人已打赏
web

CSS如何实现毛玻璃效果

2023-2-12 18:09:23

web

轻松实现网页中通过链接跳转到QQ聊天界面

2023-3-18 0:11:52

广告|星球视频
2 条回复 A文章作者 M管理员
  1. shenbudu

    点击不了

    • 黑墨

      有时间再修[g=孤独摇滚/抱腿波奇.gif]

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索