div+css实现三个点表情跳动loading加载动画效果代码
代码语言:html
所属分类:加载滚动
代码描述:div+css实现三个点表情跳动loading加载动画效果代码
代码标签: div css 三个 点 表情 跳动 loading 加载 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> :root { --animation-time: 1s; --animation-time-double: 2s; } *, *::before, *::after { box-sizing: border-box; padding: 0; margin: 0; } html { font-size: 62.5%; } body { min-height: 100vh; display: grid; grid-template-columns: 12rem 12rem 12rem; column-gap: 1rem; place-items: center; justify-content: center; background-color: #41315e; } .loader { font-size: 1rem; } .loader--1, .loader--3 { transform: scale(.8); } .loader--2 * { animation-delay: .2s; } .dot { position: relative; background-color: rgb(255, 197, 62); width: 10em; height: 10em; z-index: 5; border-radius: 50%; overflow: hidden; transform-origin: bottom; animation-duration: var(--animation-time); animation-iteration-count: infinite; animation-name: bounce; animation-timing-function: ease; } .loader--2 .face { animation-duration: var(--animation-time-double); animation-iteration-count: infinite; animation-name: face; animation-timing-function: ease; } .eyes { position: absolute; top: 3em; left: 3em; background-color: rgb(42, 25, 15); height: 1em; width: 1em; border-radius: 50%; box-shadow: 3em 0 0 rgb(42, 25, 15); } .mouth { position: absolute; background-color: rgb(42, 25, 15); height: .5em; width: 2em; left: 4em; top: 5em; animation-duration: var(--animation-time-double); animation-iteration-count: infinite; animation-name: mouth; animation-timing-function: ease; } .shadow { width: 10em; height: 4em; border-radius: 50%; background-color: rgba(0, 0, 0, 0.322); margin-top: -2em; animation-duration: var(--animation-time); animation-iteration-count: infinite; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0