一款纯css3实现的条纹加载条_html/css_WEB-ITnose

php中文网
发布: 2016-06-24 11:50:14
原创
1681人浏览过

之前为大家带来了很多加载动画。 基于prefixfree.js的进度加载条 ,基于jquery带百分比的响应式进度加载条。今天给大家分享一款纯css3实现的条纹加载条。带有响应式的效果。效果图如下 :

在线预览   源码下载

实现的代码。

html代码:

LobeHub
LobeHub

LobeChat brings you the best user experience of ChatGPT, OLLaMA, Gemini, Claude

LobeHub 201
查看详情 LobeHub

立即学习前端免费学习笔记(深入)”;

 <div class="container">        <div class="warning">        </div>    </div>
登录后复制

css3代码:

    .warning {  position: relative;  background-color: #6DA807;  border: 1px solid #6DA807;  border-radius: 10px;  box-shadow: 1vw 3vh 10vh rgba(109, 168, 7, 0.8);  background-size: 3em 3em;  background-image: linear-gradient(-45deg, transparent 0em, transparent 0.8em, #96D923 0.9em, #96D923 2.1em, transparent 2.1em, transparent 2.9em, #96D923 3.1em);  -webkit-animation: warning-animation 750ms infinite linear;  -moz-animation: warning-animation 750ms infinite linear;  animation: warning-animation 750ms infinite linear;}@-webkit-keyframes warning-animation {  0% {    background-position: 0 0;  }  100% {    background-position: 3em 0;  }}@-moz-keyframes warning-animation {  0% {    background-position: 0 0;  }  100% {    background-position: 3em 0;  }}@keyframes warning-animation {  0% {    background-position: 0 0;  }  100% {    background-position: 3em 0;  }}.warning:before {  content: '';  position: absolute;  top: 0;  left: 0;  right: 0;  bottom: 0;  height: 100%;  border-radius: 10px;  background-image: linear-gradient(to bottom, #6DA807, rgba(171, 226, 77, 0.6) 15%, transparent 60%, #6DA807);}body, html {  position: absolute;  top: 0;  left: 0;  bottom: 0;  right: 0;  height: 100%;}body {  background-repeat: no-repeat;  background-position: center;  background-image: radial-gradient(circle, #c0e979, #96d923);}.container {  width: 80vw;  margin: 45vh auto 0;}.container .warning {  height: 10vh;}
登录后复制

via:http://www.w2bc.com/Article/18415

HTML速学教程(入门课程)
HTML速学教程(入门课程)

HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号