性能
通过帧率: 平均 60 fps,p5 59.9 · 长任务: 0 个,共 0 毫秒,最长 0 毫秒 · 源码 gzip 4.4 KB · 运行时 1.6 KB
oscillationApache-2.0加载动画Material Loaders
theIYD 用纯 HTML 和 CSS 做的加载动画。按 Apache-2.0 许可从 Material Loaders 收录,此处为实时预览。
质量报告
等级和分数来自构建或测试时跑过的自动检查。没跑过的项目会标成「未检测」,不会填假数据。
帧率: 平均 60 fps,p5 59.9 · 长任务: 0 个,共 0 毫秒,最长 0 毫秒 · 源码 gzip 4.4 KB · 运行时 1.6 KB
问题 0 · 读屏: 需注意
已响应减弱动效
无溢出
帧率和长任务是在无界面的 Chromium 里用软件 WebGL 测的,只适合在本站组件之间比较,不代表真机表现。
没有 axe-core 违规。

检测于 2026年11月15日 · 数据来自自动脚本,不是手工填写。
按实际尺寸显示。
复制内容以许可声明开头,使用代码时请保留。
<div class="oscillate"></div>/* Copyright 2017 Idrees Dargahwala
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License. */
.oscillate {
position: absolute;
box-sizing: border-box;
top: 50;
margin-top: -10px;
border-radius: 16px;
width: 80px;
height: 20px;
padding: 4px;
background: #eee; }
.oscillate:before {
content: '';
position: absolute;
border-radius: 16px;
width: 20px;
height: 12px;
left: 0;
background: #000000;
-webkit-animation: oscillate 1s infinite linear;
animation: oscillate 1s infinite linear; }
@keyframes oscillate {
50% {
left: 56px;
background: #000000; } }控件 · HTML · CSS · JS
直接改代码,再用控件微调,预览会随输入实时更新。

在线编辑每个组件,用控件微调,下载完整源码,复制进阶提示词。
一次性 $49占位价格
测试模式:不会真实扣款。
免费:预览、复制按钮和课程说明。
小黑胶囊在 80px 的灰色轨道里每秒左右滑动一次,像一个不知道终点的进度条。
表单、上传和同步中的不确定进度。
改 #eee 轨道、#000000 滑块、80px × 20px 尺寸、56px 移动距离和 1s 的 oscillate。
用纯 HTML、CSS 和 JavaScript(不用框架)做一个「来回摆动的胶囊加载」组件。小黑胶囊在 80px 的灰色轨道里每秒左右滑动一次,像一个不知道终点的进度条。 适用场景:表单、上传和同步中的不确定进度。 开放这些可调项:改 #eee 轨道、#000000 滑块、80px × 20px 尺寸、56px 移动距离和 1s 的 oscillate。 支持浅色和深色主题,遵守 prefers-reduced-motion 并给出静止画面,保证文字清晰、控件可用键盘操作。请写原创代码,不要从付费或受限的组件库复制。
更完整的提示词,包含调参、无障碍和接入步骤。