Communitygithub.com

christiansalazar-wk/ai-lore

HyperFrames animation skill — all animation presets plus GSAP, Lottie, Three.js, Anime.js, CSS, WAAPI, and TypeGPU runtime adapters.

Qu'est-ce que ai-lore ?

ai-lore is a Claude Code agent skill that hyperFrames animation skill — all animation presets plus GSAP, Lottie, Three.js, Anime.js, CSS, WAAPI, and TypeGPU runtime adapters.

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/christiansalazar-wk/ai-lore/tree/HEAD/skills/hyperframes-animation

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

HyperFrames Animation

Built-In Presets (data-hf-animate)

PresetDescription
fade-inopacity 0 → 1
fade-outopacity 1 → 0
fadefade-in + fade-out
slide-uptranslates from below, fades in
slide-downtranslates from above, fades in
slide-leftfrom right, fades in
slide-rightfrom left, fades in
zoom-inscale 0.8 → 1, fades in
zoom-outscale 1 → 1.2, fades out
popquick elastic scale-up
shakehorizontal shake
typewritertext reveals character by character
wipe-rightclip reveal wipe left → right
wipe-leftclip reveal wipe right → left
blur-inblur 20px → 0
blur-outblur 0 → 20px
<div data-hf-clip data-hf-animate="fade-in"
     data-hf-animate-duration="0.6s"
     data-hf-animate-ease="ease-out">
  Content
</div>

GSAP Adapter

<script data-hf-runtime="gsap" src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
<script data-hf-timeline>
  hf.at("0s", () => gsap.from("#hero h1", { y: 60, opacity: 0, duration: 0.8 }));
</script>

Lottie Adapter

<div data-hf-clip data-hf-start="1s" data-hf-duration="auto"
     data-hf-lottie="assets/confetti.json"
     data-hf-lottie-loop="false">
</div>

Three.js Adapter

<canvas id="scene3d" data-hf-clip data-hf-runtime="threejs" data-hf-start="0s" data-hf-duration="6s"></canvas>
<script data-hf-runtime="threejs" data-hf-target="#scene3d">
  const scene = new THREE.Scene();
  hf.onFrame((t) => { mesh.rotation.y = t * 0.5; });
</script>

Anime.js Adapter

<script data-hf-runtime="animejs"></script>
<script data-hf-timeline>
  hf.at("0.5s", () => anime({ targets: "#logo", scale: [0, 1], duration: 600, easing: "spring(1,80,10,0)" }));
</script>

WAAPI Adapter

<script data-hf-timeline>
  hf.at("1s", () => {
    document.querySelector("#badge").animate(
      [{ opacity: 0, transform: "scale(0.5)" }, { opacity: 1, transform: "scale(1)" }],
      { duration: 500, fill: "forwards" }
    );
  });
</script>

TypeGPU Adapter

<canvas id="gpu-canvas" data-hf-clip data-hf-runtime="typegpu" data-hf-start="0s" data-hf-duration="8s"></canvas>
<script data-hf-runtime="typegpu" data-hf-target="#gpu-canvas">
  hf.onFrame((t) => { /* WebGPU render loop */ });
</script>

hf Timeline API

MethodDescription
hf.at(time, fn)run fn at absolute scene time
hf.onFrame(fn)run every frame; fn receives seconds
hf.clockcurrent render time in seconds
hf.scenecurrent scene id
hf.fpsconfigured fps

Individual skills in this repo

This repo contains 6 individual skills — each has its own dedicated page.

Skills associés