lottie
/lottie
Opisuje wzorce adaptera Lottie i dotLottie dla HyperFrames: osadzanie animacji lottie-web, plików .lottie i odtwarzacza dotlottie-web oraz deterministyczny eksport z After Effects.
- Autor
- alecs5am ↗
- Repozytorium
- ralphy ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 26.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 5
Brak sygnałów. Repozytorium zmienione 26.10.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
Opisuje wzorce adaptera Lottie i dotLottie dla HyperFrames: osadzanie animacji lottie-web, plików .lottie i odtwarzacza dotlottie-web oraz deterministyczny eksport z After Effects.
Oryginalny opis (EN)
Lottie and dotLottie adapter patterns for HyperFrames. Use when embedding lottie-web JSON animations, .lottie files, @lottiefiles/dotlottie-web players, registering instances on window.__hfLottie, or making After Effects exports deterministic in HyperFrames.
Jak działa
- Contract
- lottie-web Pattern
- dotLottie Pattern
- Multiple Animations
- Good Uses
- Avoid
- Validation
- Credits And References
Podgląd SKILL.md
---
name: lottie
description: Lottie and dotLottie adapter patterns for HyperFrames. Use when embedding lottie-web JSON animations, .lottie files, @lottiefiles/dotlottie-web players, registering instances on window.__hfLottie, or making After Effects exports deterministic in HyperFrames.
---
# Lottie for HyperFrames
HyperFrames can seek both `lottie-web` and dotLottie players through its `lottie` runtime adapter. Lottie is a strong fit because the animation timeline is already encoded in the asset; HyperFrames only needs a player object it can seek.
## Contract
- Load assets from local project files (for ralphy projects: the `artifacts/` tree).
- Set `autoplay: false`.
- Prefer `loop: false` unless the user explicitly wants a loop.
- Register every returned animation or player on `window.__hfLottie`.
- Keep the Lottie container dimensions stable with CSS.
The adapter seeks `lottie-web` with `goToAndStop(timeMs, false)` and dotLottie with frame or percentage APIs depending on player shape.
## lottie-web Pattern
```html
<div id="logo-lottie" class="lottie-layer"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.12.2/lottie.min.js"></script>
<script>
const anim = lottie.loadAnimation({
container: document.getElementById("logo-lottie"),
renderer: "svg",
loop: false,
autoplay: false,
path: "assets/logo-reveal.json",
});
window.__hfLottie = window.__hfLottie || [];
window.__hfLottie.push(anim);
</script>
```
```css
.lottie-layer {
width: 100%;
height: 100%;
}
```
## dotLottie Pattern
```html
<canvas id="product-lottie" class="lottie-canvas"></canvas>
<script src="https://unpkg.com/@lottiefiles/dotlottie-web"></script>
<script>
const player = new DotLottie({
canvas: document.getElementById("product-lottie"),
src: "assets/product-flow.lottie",
autoplay: false,
loop: false,
});
window.__hfLottie = window.__hfLottie || [];
window.__hfLottie.push(player);
</script>
```
```css
.lottie-canvas {
width: 100%;
height: 100%;
display: block;
}
```
## Multiple Animations
Push each player into the same registry:
```js
window.__hfLottie = window.__hfLottie || [];
window.__hfLottie.push(backgroundAnim);
window.__hfLottie.push(iconAnim);
window.__hfLottie.push(confettiAnim);
```
HyperFrames seeks them all to the same composition time.
## Good Uses
- After Effects exports that are already known to render correctly in lottie-web.
- Logo reveals, icon loops, decorative accents, and product UI motion.
- Embedding lottie-web JSON or `.lottie` players inside HyperFrames HTML.
## Avoid
- Relying on remote `path` URLs at render time.
- Starting playback with `play()`.
- Assuming unsupported After Effects effects will survive export. Test the JSON or `.lottie` file in a browser first.
- Loading a player asynchronously and registering it after HyperFrames validation has already inspected the page.
## Validation
After editing a Lottie composition:
```bash
npx hyperframes lint
npx hyperframes validate
```
## Credits And References
- HyperFrames adapter source: `packages/core/src/runtime/adapters/lottie.ts`.
- lottie-web by Airbnb: https://github.com/airbnb/lottie-web
- lottie-web `loadAnimation` options: https://github.com/airbnb/lottie-web/wiki/loadAnimation-options
- dotLottie web player methods by LottieFiles: https://developers.lottiefiles.com/docs/dotlottie-player/dotlottie-web/methods
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · alecs5am/ralphy | 100 | Apache-2.0 |
| TerminalSkills/skills | 100 | Apache-2.0 |
| anton-abyzov/vskill | 100 | MIT |
| contextgo/contextgo | 100 | Apache-2.0 |
Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 13.11.2026 · wersja paczki 8cddda16b99c (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 95lottie-animations
Wdraża animacje Lottie w sieci i aplikacjach React (lottie-web, lottie-react, dotLottie, bodymovin): animowane ikony, mikrointerakcje i animacje ładowania z After Effects. - 90lottie-animation
Tworzy i naprawia animacje Lottie w formacie JSON, z płynną pętlą i dużymi plikami, dla lottie-web, Skottie i dotLottie. - 100lottie-animation
Pomaga dodawać i integrować animacje Lottie, dotLottie i Bodymovin z After Effects w aplikacjach webowych i mobilnych: sterowanie odtwarzaniem, interaktywność, motywy i lista kontrolna eksportu. - 100lottie-animation-delivery
Prowadzi przez ocenę, eksport, pakowanie, integrację, weryfikację i przekazanie animacji wektorowych Lottie, w tym dotLottie, fonty, markery, optymalizację, dostępność i testy między platformami. - 100lottie-design
Wyszukuje, pobiera i integruje darmowe animacje Lottie w projektach React, React Native, Vue, Svelte, Angular, Flutter i czystym webie, na przykład loadery, splash screeny i stany puste. - 90remotion-to-hyperframes
Przenosi kod wideo z Remotion, Lottie, Three.js i innych narzędzi do HyperFrames i sprawdza klatka po klatce z oryginałem.