多彩加载条
代码语言:html
所属分类:加载滚动
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> Colorful Loader</title>
<style>
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
/* center in the viewport */
body {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: hsl(240, 61%, 8%);
}
svg {
display: block;
width: 350px;
height: auto;
}
/* CSS animation picked up by the slices */
@keyframes scale {
to {
transform: scale(1);
}
}
</style>
</head>
<body translate="no">
<div id="root"></div>
<script>
// function rendering the svg graphic on the basis of the values received from dat.gui
function renderLoader(props) {
const {
paused,
crispEdges,
duration,
initialScale,
gap,
innerRadius,
number
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0