hyper-effects
/hyper-effects
Pomaga budować i naprawiać animacje interfejsu we Flutterze z pakietem hyper_effects, od springów i wejść elementów po timeline'y i migrację do wersji 0.4.0.
- Autor
- hyper-designed ↗
- Repozytorium
- hyper_effects ↗
- Licencja
- BSD-3-Clause
- Ostatnia zmiana repozytorium
- 20.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 20.10.2026, bez odwołań do wycofanych modeli i API.
BSD-3-Clause, otwarta.
Co robi i kiedy
Pomaga budować i naprawiać animacje interfejsu we Flutterze z pakietem hyper_effects, od springów i wejść elementów po timeline'y i migrację do wersji 0.4.0.
Oryginalny opis (EN)
Use when building or troubleshooting Flutter UI with package:hyper_effects, including state-driven animation, mount entrances, springs, rolling text, layout size, hover/press feedback, scroll transitions, timelines, TimelineController, keyframe sequencing, loops, or migration to version 0.4.0.
Jak działa
- Choose the driver
- Contracts to preserve
Podgląd SKILL.md
---
name: hyper-effects
description: Use when building or troubleshooting Flutter UI with package:hyper_effects, including state-driven animation, mount entrances, springs, rolling text, layout size, hover/press feedback, scroll transitions, timelines, TimelineController, keyframe sequencing, loops, or migration to version 0.4.0.
---
# Hyper Effects
For Hyper Effects **0.4.0**. Check the consuming app's resolved version before applying this reference; older releases have different APIs.
## Choose the driver
| Intent | API |
| --- | --- |
| Static appearance | Effect extensions without a driver |
| React to state or replay an event | `.animate(trigger: value)` |
| Entrance once per mounted State | `.immediate()` |
| Entrance and later trigger changes | `.animate(trigger: value, startState: AnimationStartState.eager)` |
| Sequential absolute keyframes | `.step(...).timeline(...)` |
| Pointer or scroll response | `.pointerTransition(...)` / `.scrollTransition(...)` |
Effects wrap widgets. An animation drives its descendant effect scope; nested drivers create independent scopes, not a sequence. Keep widget identity stable across state changes.
Use widget classes for reusable UI, not widget-returning helper functions. The short example below belongs inside `build`, with Flutter material and Hyper Effects imported.
```dart
return Text('$count')
.roll(widthCurve: Curves.easeOut)
.animate(trigger: count, duration: const Duration(milliseconds: 250));
```
`Text.roll()` reads the receiver's current text and retains its previous value. It takes **named options only**, not a replacement string. Call it before other extensions erase the receiver's `Text` type. For arbitrary widgets, use `Widget.roll()` with distinct child keys; its options are `slideInDirection`, `slideOutDirection`, `multiplier`, and `useSnapshots`.
## Contracts to preserve
- `trigger` changes use equality comparison. Use an incrementing integer for repeated events; repeatedly assigning `true` is not a new event.
- Default `lazy` mounts at starting values and waits. `eager` plays on mount and keeps the trigger live. `#immediate` occupies the trigger slot; ordinary rebuilds do not replay it, but a new State does.
- Use explicit `from:` for deliberate entrances/replays. For ordinary retargeting, preserve effect identity and derive the destination and trigger from state; do not blindly add a fixed origin.
- Choose `motion:` **or** `duration:`/`curve:`, never both. Cupertino spring duration is perceptual, not exact settling time.
- True vector springs support translation, scale, rotation, opacity, padding, alignment and size. Blur, clipping and other non-vector effects use a normalized interpolation fallback: no guaranteed physical overshoot or velocity handoff. Prefer curved motion when that distinction matters.
- `playIf: false` does not drive to the destination. `skipIf: true` jumps there without playback **or `onEnd`**. Reduced-motion entrances generally need the latter; completion-dependent UI needs an explicit skipped path.
- Layout: `.widthTo()`, `.heightTo()`, `.sizeTo()`, `.sizeOf()` change layout; `.scale()` changes paint. Null size axes/factors represent layout modes, not zero-sized endpoints.
- Translation hit tests move by default, but ancestor bounds still constrain hit testing. Hidden controls need an interaction policy such as `IgnorePointer`.
Read [recipes and pitfalls](references/recipes.md) for effects and interaction. For sequencing, loops, scrubbing, or migration from animateAfter, read [timelines](references/timelines.md). Verify snippets with `flutter analyze` and widget tests in the consuming package. Test mount, retrigger, interruption, reduced motion and actual tap positions where relevant. Use finite pumps for infinite loops.
Pliki w paczce (3)
- SKILL.md 4 KB
- references/recipes.md 5 KB
- references/timelines.md 7 KB
Wersje
W bazie nie ma innych skilli o nazwie hyper-effects.
Migawka bazy z 13.11.2026 · wersja paczki 5f4804fc7b7d (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
- 100flutter-animating-apps
Implementuje animacje, przejścia i ruch w aplikacji Flutter: informacja zwrotna wizualna, przejścia wspólnych elementów i animacje oparte na fizyce. - 100animations
Zbiera wiedzę o animacjach: Framer Motion, animacje CSS, efekty przewijania i dobre praktyki dla komponentów interfejsu. - 100animation-patterns
Opisuje wzorce animacji w SwiftUI: sprężyny, przejścia, PhaseAnimator, KeyframeAnimator, efekty SF Symbols i shadery dla iOS i macOS. - 100animation-recipe-library
Dostarcza ponad 200 gotowych receptur animacji w CSS, Framer Motion i GSAP: wejścia, mikrointerakcje, przejścia stron, efekty scroll, sprężyny i kursor, każda z wariantem dla reduced motion. - 100motion
Pomaga animować komponenty React biblioteką Motion (dawniej Framer Motion): fade-in, efekty hover i tap, AnimatePresence, przejścia layoutu, animacje przy przewijaniu i migracja z framer-motion. - 100gsap
Pomaga tworzyć w bibliotece GSAP złożone animacje webowe: tweeny, timeline, animacje sterowane przewijaniem (ScrollTrigger), morfing SVG i dzielenie tekstu.