Add loading states: Free AI Prompt | SheCodes

Free AI prompt · The Design Book

Add loading states

A ready-to-use prompt from the chapter Animations. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.

The prompt

“Add animated loading states to my app. Show pulsing skeleton placeholders shaped like the real content while data is loading. Add a spinning indicator for buttons that are processing. Use smooth transitions when the real content replaces the skeletons.”

How to use it

  1. Copy the prompt and paste it into your AI coding tool.
  2. Check the result in the preview, then ask for changes one at a time: "make the buttons bigger", "use my brand colours".
  3. Read the chapter to understand why it works and what to do next.

More prompts like this

All prompts

Add scroll animations

“Add subtle entrance animations to my page. Fade in each section as it scrolls into view, and add a slight upward slide to each card. Use a staggered delay so items appear one after another. Keep durations around 500ms with ease-out timing.”

Add hover effects

“Add hover animations to my [buttons / cards / links]. Make them [scale up slightly / change color smoothly / lift up with a shadow] on hover. Keep the transition fast (200ms) so it feels responsive. Also add a subtle press-down effect on click.”

Apply your colors and fonts

“Update my site to use this design system. Colors: Primary [#hex], Secondary [#hex], Background [#hex], Text [#hex], Accent [#hex]. Fonts: Headings [font name] bold, Body [font name] regular. Apply these consistently across all components (buttons, links, headings, card backgrounds, borders, and hover states). Make sure there's enough contrast for readability.”

Upload a screenshot and build it

“I'm uploading a screenshot of a website design I like. Please recreate this layout and visual style for my [type of project]. Use my color palette: Primary [#hex], Secondary [#hex], Background [#hex]. Use [font name] for headings and [font name] for body text. Match the spacing, typography hierarchy, and overall feel as closely as possible. Build it with Next.js and Tailwind CSS.”

Upload a Stitch design and build it

“I'm uploading a UI design I created in Google Stitch. Please recreate this exact design as a working website. Use my color palette: Primary [#hex], Secondary [#hex], Background [#hex]. Match the layout, fonts, spacing, and component styles as closely as possible. Build it with Next.js and Tailwind CSS.”