mirror of
https://github.com/hanzoai/frames.git
synced 2026-09-24 00:08:03 +00:00
Every SKILL.md already declared the new name — name: frames, frames-cli, frames-core, and so on — but the directories were never moved, so the tree carried frames-* in content and hyperframes-* on disk. Everything that resolves a skill by path missed: the core-skill list, the plugin marketplace pin, and the docs the CLI reads at runtime. Eight tests failed on main because the files they open do not exist. The directories now match what the files say they are, and the guide the claude-design contract reads takes the name that contract already used.
1.4 KiB
1.4 KiB
Worked Example: Adding a Component
Scenario
User wants to add a shimmer light sweep effect to their title text.
Steps
1. Install the component
frames add shimmer-sweep
2. Read the snippet
Open compositions/components/shimmer-sweep.html and read the comment header.
3. Wire into your composition
HTML — wrap target elements:
<div class="shimmer-sweep-target" style="--shimmer-color: rgba(255, 255, 255, 0.5)">
<h1 class="title">AI-Powered Video</h1>
</div>
CSS — paste the .shimmer-sweep-target and .shimmer-mask rules from the snippet.
JS — paste the auto-injection script (before timeline code):
document.querySelectorAll(".shimmer-sweep-target").forEach((el) => {
if (!el.querySelector(".shimmer-mask")) {
const mask = document.createElement("div");
mask.className = "shimmer-mask";
el.appendChild(mask);
}
});
Timeline — add the sweep:
tl.fromTo(
".shimmer-sweep-target",
{
"--shimmer-pos": "-20%",
},
{
"--shimmer-pos": "120%",
duration: 1.2,
ease: "power2.inOut",
stagger: 0.15,
},
1.5,
);
4. Lint and preview
frames lint
frames preview
5. Customize
--shimmer-color: highlight color per element--shimmer-width: light band width (default 20%)--shimmer-angle: sweep direction (default 120deg)- Timeline
duration,ease,stagger: control speed and feel