Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

animation-performance-retro

/animation-performance-retro

Optymalizuje animacje w stylu 8-bit pod kątem płynności w pikselartowych animacjach, efektach interfejsu gier i innych retro animacjach.

Repozytorium
8bitcn-ui ↗
Licencja
MIT
Ostatnia zmiana repozytorium
23.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 23.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Optymalizuje animacje w stylu 8-bit pod kątem płynności w pikselartowych animacjach, efektach interfejsu gier i innych retro animacjach.

Oryginalny opis (EN)

Optimize 8-bit animations for smooth performance. Apply when creating animated pixel art, game UI effects, or any retro-styled animations.

Jak działa

  1. Animation Performance for Retro UI
Sekcje z nagłówków SKILL.md, w oryginale · 135 linii, 362 słów
Podgląd SKILL.md
---
name: animation-performance-retro
description: Optimize 8-bit animations for smooth performance. Apply when creating animated pixel art, game UI effects, or any retro-styled animations.
---

## Animation Performance for Retro UI

Optimize animations for smooth pixel art rendering and game-like interfaces.

### Hardware Acceleration

Use CSS transforms for GPU-accelerated animations:

```tsx
<div className="transition-transform hover:scale-110" />
<div className="translate-x-0 translate-y-0" />
```

**Avoid animating:**
- `width`, `height` (triggers layout)
- `margin`, `padding` (triggers layout)
- `top`, `left` (triggers layout)

**Prefer animating:**
- `transform` (GPU accelerated)
- `opacity` (GPU accelerated)
- `filter` (GPU accelerated)

### Pixelated Animations

Wrap animated SVGs in divs for hardware acceleration:

```tsx
function PixelSpinner() {
  return (
    <div className="animate-spin">
      <svg viewBox="0 0 16 16">
        <rect x="2" y="2" width="4" height="4" fill="currentColor" />
      </svg>
    </div>
  );
}
```

### Loading States

Use pulse animations for retro loading indicators:

```tsx
function RetroSkeleton() {
  return (
    <div className="relative animate-pulse">
      <div className="h-20 bg-muted" />
    </div>
  );
}
```

### Custom Retro Animations

Define pixel-art-specific animations:

```tsx
<div
  className="retro animate-[blink_0.5s_step-end_infinite]"
  style={{
    textShadow: "1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff"
  }}
>
  LEVEL UP!
</div>

<style>{`
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
`}</style>
```

### Conditional Animation States

Apply animations based on game state:

```tsx
<div
  className={cn(
    "transition-all duration-300",
    health <= 25 && "animate-pulse bg-red-500/20",
    isLevelUp && "animate-bounce"
  )}
/>
```

### Radix UI Animations

Use Radix state-based animations for overlays:

```tsx
<DialogContent
  className={cn(
    "data-[state=open]:animate-in data-[state=closed]:animate-out",
    "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
    "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95"
  )}
/>

<AccordionContent
  className={cn(
    "overflow-hidden data-[state=closed]:animate-accordion-up",
    "data-[state=open]:animate-accordion-down"
  )}
/>
```

### Key Principles

1. **Wrap SVGs** - Always wrap in div for hardware acceleration
2. **Use transforms** - Prefer `transform` over `top`/`left`
3. **Step animations** - Use `step-end` for pixel-art feel
4. **Conditional classes** - Apply animations based on game state
5. **Custom keyframes** - Define retro-specific animations
6. **Text shadows** - White shadow for legibility on colored backgrounds

### Performance Checklist

- [ ] Animated elements wrapped in divs
- [ ] No layout-triggering properties animated
- [ ] Loading states use `animate-pulse`
- [ ] Conditional animations properly gated
- [ ] Custom animations use step timing functions

### Reference Components

- `components/ui/8bit/spinner.tsx` - Animated spinner
- `components/ui/8bit/xp-bar.tsx` - Custom blink animation
- `components/ui/8bit/skeleton.tsx` - Loading skeleton
- `components/ui/8bit/accordion.tsx` - Radix state animations

Wersje

W bazie nie ma innych skilli o nazwie animation-performance-retro.

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 5308f040c064 (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

  • 1008-bit-pixel-art-patterns
    Tworzy pikselowe ramki, cienie i efekty dla komponentów interfejsu w stylu retro 8-bit.
  • 100retro-css-architecture
    Porządkuje CSS w stylu 8-bit przez zmienne CSS, fonty pikselowe i responsywną pikselową grafikę przy tworzeniu lub zmianie komponentów retro.
  • 90pixel-art
    Generuje i naprawia pixel art w Retro Diffusion: sprite'y, tilesety, animacje i zasoby do gier retro oraz przywraca grafikę do natywnej siatki.
  • 95pixel-studio
    Tworzy retro animacje wideo w stylu pixel art, takie jak sceny 8-bit, postacie i wyjaśniacze, jako kod w silniku Pixel Studio.
  • 100animations
    Zbiera wiedzę o animacjach: Framer Motion, animacje CSS, efekty przewijania i dobre praktyki dla komponentów interfejsu.
  • 87pixel-art-studio
    Tworzy grafikę pikselową i animacje programowo: sprite'y, arkusze sprite'ów, pikselowanie obrazów i postaci w stylu retro.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.