animejs
/animejs
Podaje wzorce adaptera Anime.js dla HyperFrames: animacje i osie czasu w kompozycjach, rejestrację w window.__hfAnime, deterministyczne sterowanie przez seek i przekładanie przykładów na HTML bezpieczny dla renderu.
- Autor
- alecs5am ↗
- Repozytorium
- ralphy ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 04.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 3
Brak sygnałów. Repozytorium zmienione 04.11.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Podaje wzorce adaptera Anime.js dla HyperFrames: animacje i osie czasu w kompozycjach, rejestrację w window.__hfAnime, deterministyczne sterowanie przez seek i przekładanie przykładów na HTML bezpieczny dla renderu.
Oryginalny opis (EN)
Anime.js adapter patterns for HyperFrames. Use when writing Anime.js animations or timelines inside HyperFrames compositions, registering animations on window.__hfAnime, making Anime.js seek-driven and deterministic, or translating Anime.js examples into render-safe HyperFrames HTML.
Jak działa
- Contract
- Basic Pattern
- Timeline Pattern
- Module Builds
- Good Uses
- Avoid
- Validation
- Credits And References
Podgląd SKILL.md
---
name: animejs
description: Anime.js adapter patterns for HyperFrames. Use when writing Anime.js animations or timelines inside HyperFrames compositions, registering animations on window.__hfAnime, making Anime.js seek-driven and deterministic, or translating Anime.js examples into render-safe HyperFrames HTML.
---
# Anime.js for HyperFrames
HyperFrames can seek Anime.js instances through its `animejs` runtime adapter. The composition owns the animation objects; HyperFrames owns the clock.
## Contract
- Create animations or timelines synchronously during composition initialization.
- Set `autoplay: false` so Anime.js does not advance on its own clock.
- Register every returned animation or timeline on `window.__hfAnime`.
- Use finite durations and loop counts.
- Avoid callbacks that mutate DOM based on wall-clock time, network state, or unseeded randomness.
The adapter seeks every registered instance with `instance.seek(timeMs)`, where `timeMs` is HyperFrames time in milliseconds.
## Basic Pattern
```html
<script src="https://cdn.jsdelivr.net/npm/animejs@4.0.2/lib/anime.iife.min.js"></script>
<script>
const anim = anime({
targets: ".mark",
translateX: 280,
rotate: "1turn",
opacity: [0, 1],
duration: 1200,
easing: "easeOutExpo",
autoplay: false,
});
window.__hfAnime = window.__hfAnime || [];
window.__hfAnime.push(anim);
</script>
```
## Timeline Pattern
```html
<script>
const tl = anime.timeline({
autoplay: false,
easing: "easeOutCubic",
});
tl.add({
targets: ".title",
translateY: [40, 0],
opacity: [0, 1],
duration: 650,
}).add(
{
targets: ".accent",
scaleX: [0, 1],
duration: 450,
},
250,
);
window.__hfAnime = window.__hfAnime || [];
window.__hfAnime.push(tl);
</script>
```
## Module Builds
If you use an ES module build, the adapter does not care how the instance was created. It only needs the returned object to expose `seek()`, `pause()`, and preferably `play()`:
```html
<script type="module">
import { animate } from "https://cdn.jsdelivr.net/npm/animejs/+esm";
const anim = animate(".chip", {
x: "18rem",
duration: 900,
autoplay: false,
});
window.__hfAnime = window.__hfAnime || [];
window.__hfAnime.push(anim);
</script>
```
## Good Uses
- Small SVG and DOM flourishes where Anime.js syntax is compact.
- Imported Anime.js examples that can be made seek-driven.
- Multiple independent micro-animations pushed into the same registry.
Use GSAP for complex scene sequencing unless the user specifically asks for Anime.js. GSAP is still the primary HyperFrames authoring path.
## Avoid
- Leaving `autoplay` at the Anime.js default.
- Depending on `anime.running` auto-discovery instead of explicit `window.__hfAnime.push(...)`.
- Infinite loops. Compute a finite repeat count from the composition duration.
- Building animations in timers, promises, event handlers, or after async asset loads.
## Validation
After editing a composition that uses Anime.js:
```bash
npx hyperframes lint
npx hyperframes validate
```
## Credits And References
- HyperFrames adapter source: `packages/core/src/runtime/adapters/animejs.ts`.
- Anime.js documentation for `autoplay`, `pause()`, and `seek()`: https://animejs.com/documentation/
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · alecs5am/ralphy | 95 | Apache-2.0 |
| contextgo/contextgo | 100 | Apache-2.0 |
Migawka bazy z 13.11.2026 · wersja paczki 09d154c1865a (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 85anime
Pomaga tworzyć animacje, osie czasu, interakcje, animacje SVG i efekty tekstu w Anime.js v4. - 90hyperframes-composition
Tworzy deterministyczne kompozycje wideo w HTML, CSS i JS: sceny, osie czasu, animacje, napisy i przejścia, renderowane lokalnie. - 100gsap
Dostarcza opis animacji GSAP dla HyperFrames: gsap.to, from i fromTo, easing, stagger, osie czasu oraz wydajność, gdy piszesz animacje w kompozycjach HyperFrames. - 100hyperframes-keyframes
Wspiera klatki kluczowe 2D i 3D w kompozycjach HyperFrames, odporne na przewijanie: osie GSAP, CSS keyframes, Anime.js, WAAPI, FLIP, ścieżki, maski, morfing SVG i diagnostyka hyperframes keyframes. - 95three
Pomaga tworzyć deterministyczne sceny Three.js i warstwy WebGL, które reagują na zdarzenia hf-seek w HyperFrames. - 100three
Łączy sceny Three.js i WebGL z HyperFrames: deterministyczne animacje, mikser animacji i ruch kamery sterowany zdarzeniami hf-seek.