Isometric Empty State Drawer Animation
A line-art filing cabinet on a dot grid slides a drawer open. Tapping Add Data drops a file in, the drawer closes with a small thud, and the title swaps from No data yet to 1 record added with a blur. 30-degree isometric vectors, SVG on React Native.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "isometric-empty-state-drawer-animation" to this project. The full source is attached at the end of this prompt. Put the files under components/isometric-empty-state-drawer-animation/, install the listed dependencies with `npx expo install`, and render it on a route I can open. Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply. === Source files are attached here for paid plans ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 20 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @NazmulHuda09 on X
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
A dark empty-state screen with a faint dot grid and an isometric line-art filing cabinet. On mount the top drawer slides open and waits. Tapping the white Add Data button squeezes it slightly, and a tabbed sheet of paper drops into the drawer. The drawer then closes with a small thud and the headline changes from the empty message to a record-added message: the old line rises and fades, and the new one comes up from below, soft then sharp. A subtitle follows a beat later. Further taps reopen the drawer and file another record. A demo mode replays the whole recorded clip with a touch dot.
How it's built
The cabinet is plain SVG. A shared JavaScript core defines the isometric projection, treating the cabinet as a few straight edges projected at thirty degrees, and returns a display list of paths for any moment. Parts of a drawer that sit inside the cabinet are put in layers clipped to the opening. Motion is a requestAnimationFrame loop with eased segments for the drawer and a sampled table for the paper drop. The React Native component scales a fixed design canvas to the width you give it, renders with react-native-svg, and uses Pressable for the button. Text uses the system font.
Good for
- Empty states in file, document or data apps
- A first-record celebration that confirms an upload or import
- A pattern for small isometric line illustrations with moving parts
Dependencies
react-native-svgreact-native