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-co.........完整代码请登录后点击上方下载按钮下载查看
网友评论0