div+css实现长条伸缩loading加载动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:div+css实现长条伸缩loading加载动画效果代码
代码标签: div css 长条 伸缩 loading 加载 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" /> <style> body{ background: #212121; padding: 200px; } .loader { width: 80px; height: 50px; position: relative; } .loader-text { position: absolute; top: 0; padding: 0; margin: 0; color: #C8B6FF; animation: text_713 3.5s ease both infinite; font-size: .8rem; letter-spacing: 1px; } .load { background-color: #9A79FF; border-radius: 50px; display: block; height: 16px; width: 16px; bottom: 0; position: absolute; transform: translateX(64px); animation: loading_713 3.5s ease both infinite; } .load::before { position: absolute; content: ""; width: 100%; height: 100%; background-color: #D1C2FF; border-radius: inherit; animation: loading2_713 3.5s ease both infinite; } @keyframes text_713 { 0% { letter-spacing: 1px; transform: translateX(0px); } 40% { letter-spacing: 2px; transform: translateX.........完整代码请登录后点击上方下载按钮下载查看
网友评论0