expo-animation
Fungsinya
Tool ini membantu membuat animasi yang halus dan responsif untuk aplikasi mobile, sehingga animasi tetap berjalan lancar di berbagai perangkat.
Kapan dipakai
- βSaat Anda ingin sebuah elemen bergerak halus ketika disentuh.
- βSaat membuat transisi antar layar atau antar elemen.
- βUntuk menambahkan efek visual yang meningkatkan pengalaman pengguna.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/expo-animation/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBuatkan animasi fade-in untuk tombol saat muncul di layar.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Tool ini menggunakan library khusus (seperti Reanimated) yang berjalan di 'thread' yang tepat pada ponsel agar animasi tidak lag. Fokusnya adalah membuat animasi berjalan tanpa mengganggu bagian aplikasi lainnya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
When to Use
- Use when this upstream workflow matches the user's stated goal.
- Use when the task requires the procedures documented in this skill.
Building Animations in Expo
This skill was created in collaboration with Emil Kowalski and can also be found in the emilkowalski/skills repository, along with other useful animation skills.
A construction skill for React Native. It turns a request for motion into an implementation that survives a strict review on a real device β not in the simulator, not on a flagship phone in dev mode.
Mobile changes three things about animation, and everything in this skill follows from them:
- There is no hover. Every affordance the web puts in hover has to live in press, position, or nothing.
- There are two runtimes. Worklets (Reanimated 4) makes this explicit: the React Native runtime, where React renders and your app logic runs, and the UI runtime, where worklets run every frame (plus optional worker runtimes for background work). An animation that touches the RN runtime stutters the moment the app does anything else. The whole craft is keeping motion on the UI runtime.
- The user's finger is on the element. Gestures are the primary input, so interruptibility and velocity handoff aren't polish β they're the baseline.
Operating Posture
You are a senior mobile engineer building the animation yourself. Make the call, state the reasoning in one line, write the code. Never present motion options as a menu.
Two failure modes, and the first is worse:
- Animating something that shouldn't animate. The gate below exists to produce zero lines of code sometimes.
- Animating the right thing on the wrong thread β a
setStateper frame, aPanResponder, an animatedheight. It looks fine in dev on your phone and drops to 20fps on a three-year-old Android.
Hard Rules
- Run the sequence in order. Steps 1 and 2 gate everything.
- Reanimated, not core
Animated. CoreAnimatedcan't be driven by a gesture without crossing the bridge, anduseNativeDriverrefuses anything but transform and opacity anyway. Reanimated worklets run on the UI thread and keep running while JS is busy. - No approximated values. Curves and spring configs come from the tables below.
- Reduced motion ships with the animation, not as a follow-up.
- Feel is judged on a release build on the slowest device you support. Nothing else counts as verified.
The Build Sequence
1. Should this animate at all?
| Frequency | Decision |
|---|---|
| 100+ times/day β tab switches, keyboard open/close, scrolling, toggles in settings | No animation. Platform default or nothing. Stop here. |
| Tens of times/day β press feedback, list navigation, row selection | Near-imperceptible only: under 150ms, or nothing |
| Occasional β sheets, modals, toasts, onboarding steps | Standard animation |
| Rare / first-time β success states, empty-state illustrations, celebration | The delight budget lives here |
Tab switches never slide. Tabs are peers, not a hierarchy β sliding implies depth that isn't there, and the user pays for it dozens of times a session. animation: 'none'.
If the request fails this gate, say so and don't write it.
2. What is the purpose?
Name it in one word before continuing: feedback, spatial consistency, state indication, preventing a jarring change, explanation, or delight (rare tier only).
Can't name it? Don't build it.
3. Pick the tool β cheapest that works
Walk down; stop at the first that fits.
| Need | Tool |
|---|---|
| A state-driven change with no gesture β press, toggle, color, a value flipping | Reanimated CSS transition (transitionProperty in the style) |
| Loop, multi-stage, or plays on mount with no state change | Reanimated CSS animation (animationName keyframes) |
| An element mounting or unmounting, or a list reflowing | Layout animations (entering / exiting / itemLayoutAnimation) |
| Anything a finger touches, or anything derived from scroll | useSharedValue + Gesture + useAnimatedStyle |
| Screen to screen | Native stack options in Expo Router. Never hand-roll this |
| A bottom sheet that is its own screen | presentation: 'formSheet' β it's a real UISheetPresentationController, free and correct |
β¦
Pertanyaan umum
Mengapa tidak menggunakan animasi untuk semuanya?
Animasi yang tidak perlu dapat memperlambat aplikasi. Tool ini membantu memutuskan apakah sebuah animasi benar-benar berguna atau lebih baik tidak ada sama sekali.
Apa itu 'worklets'?
Worklets adalah potongan kode kecil yang berjalan langsung di 'UI thread' (thread yang menangani antarmuka), sehingga animasi bisa berjalan sangat cepat dan halus.
Mengapa fokus pada perangkat yang lebih lambat?
Agar animasi berjalan baik untuk semua pengguna, termasuk mereka yang memakai ponsel lama atau kurang bertenaga.
Detail
Deskripsi asli dari pembuat
Curated upstream guidance for Expo Animation; use when the workflow matches the user goal.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #4568
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
android-clean-architecture
280kMembuat agent Anda mengatur proyek Android dengan efisien. Struktur kodenya dibuat agar lebih mudah dirawat dan pengembangan fitur baru.
compose-multiplatform-patterns
280kMembantu agent Anda menggunakan pola Compose Multiplatform dan Jetpack Compose di proyek KMP, mencakup state, navigasi, theming, dan performa.
dart-flutter-patterns
280kMembuat agent Anda menulis kode untuk aplikasi Dart dan Flutter. Menggunakan pola modern agar aplikasi kokoh dan mudah dikelola.