Sidebar that collapses into an icon rail

A warm grey app sidebar whose toggle button collapses it into a slim icon rail and expands it back, with labels sliding away and the logo swapping for the toggle.

By Sebastiano Guerriero (@guerriero_se) · View original post

Originally built with React. Members can get the prompt for React, SwiftUI, React Native or HTML/CSS. More menu & navigation animations in React →

Prompt

Build a collapsible sidebar in React + Framer Motion + Tailwind.…

Free forever. Available for React, SwiftUI, React Native and HTML/CSS.

Build it with

Motion details

Timing
60ms
Spring
stiffness 420, damping 36
Details
Reduced-motion fallback

Keyframes

Six frames from the clip, left to right. Agents get this sheet as a reference with the prompt.

Six keyframes from Sidebar that collapses into an icon rail

Questions

How do I build the sidebar that collapses into an icon rail in React?
Copy the Kites Motion prompt for this clip (free account) and paste it into Claude Code, Cursor or Codex, or send it there in one click. The prompt describes the layout, timing and interactions, and links a keyframe sheet so your agent can match the motion. It is written for React and can be rewritten for SwiftUI, React Native, HTML/CSS.
What are the motion details?
Timing: 60ms. Spring: stiffness 420, damping 36. Details: Reduced-motion fallback.
Who designed this animation?
Sebastiano Guerriero (@guerriero_se) shared it on X. Kites Motion links back to the original post.

More from Sebastiano Guerriero

All by @guerriero_se →