js+css实现可配置参数的svg的loading加载器动画生成器代码
代码语言:html
所属分类:加载滚动
代码描述:js+css实现可配置参数的svg的loading加载器动画生成器代码
代码标签: js css 配置 参数 svg loading 加载器 动画 生成器 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Rubik&display=swap'>
<style>
:root {
--title: "SVG Loader Generator";
--author: "Matt Cannon";
--contact: "mc@mattcannon.design";
--description: "A seamless, customizable SVG loader generator with dynamic controls for size, innerspace, segments, thickness, speed, and color as well as the ability to copy the SVG code.";
--keywords: "codepenchallenge, cpc-rotate-spin, svg loader, animation, seamless, JavaScript, visual effects, dynamic display, customizable loader, CSS animations";
--last-modified: "2025-01-16";
--content-language: "en";
--generator: "HTML5, CSS3, JavaScript";
}
* {
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-family: "Rubik", -apple-system, Helvetica, sans-serif;
font-size: 12px;
color: #fff;
background-color: #000;
-webkit-font-smoothing: antialiased;
}
.generatorPanel {
border: 1px solid #181818;
border-bottom: none;
border-radius: 4px 4px 0 0;
text-align: center;
overflow: visible;
margin-top: 20px;
}
.svgPanel {
width: 220px;
height: 220px;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
background: #000;
}
.settingsPanel {
display: block;
padding: 12px 16px 8px 16px;
background-color: #181818;
}
label {
display: flex;
padding: 4px;
justify-content: space-between;
user-select: none;
}
.settingsPanel label:first-o.........完整代码请登录后点击上方下载按钮下载查看
网友评论0