html如何利用css3做一个loading动态过渡效果,下面web建站小编给大家简单介绍一下实现代码!
html代码:
<div class="loading"></div>
css动态效果代码:
body{ display: flex; align-items: center; justify-content: center; height: 100vh; background: #69a7f7; } .loading, .loading:before, .loading:after { background: #FFF; -webkit-animation: dynamic 1s infinite ease-in-out; animation: dynamic 1s infinite ease-in-out; width: 1em; height: 4em; } .loading:before, .loading:after { position: absolute; top: 0; content: ''; } .loading:before { left: -1.5em; -webkit-animation-delay: -0.32s; animation-delay: -0.32s; } .loading { text-indent: -9999em; margin: 8em auto; position: relative; font-size: 11px; -webkit-animation-delay: -0.16s; animation-delay: -0.16s; } .loading:after { left: 1.5em; } @-webkit-keyframes dynamic { 0%, 80%, 100% { box-shadow: 0 0 #FFF; height: 4em; } 40% { box-shadow: 0 -2em #ffffff; height: 5em; } } @keyframes dynamic { 0%, 80%, 100% { box-shadow: 0 0 #FFF; height: 4em; } 40% { box-shadow: 0 -2em #ffffff; height: 5em; } }
标签: loading
上面是“css3加载中loading效果代码”的全面内容,想了解更多关于 前端知识 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_3231.html
workflows工作流
一只精致透明的朱红色水晶狐狸
一只穿着黑色蝴蝶结西装可爱橙色小猫
一艘来自工业时代的飞船ComfyUI工作流
一条赤壁龙从蛋中孵化出来ComfyUI工作流
一只外星甲壳虫子ComfyUI工作流
去掉背景(抠图)comfyui工作流
树上站着一只鸟ComfyUI工作流
森林里有一个皮肤像抛光黑曜石的生物
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!