All answers · AI builders and MCP · 55 questions
Prompting AI for websites, answered.
This page answers how to write prompts that get a designed, animated website out of an AI tool instead of a generic one. It is for anyone using Claude Code, Cursor, Lovable, v0, Bolt, ChatGPT or Codex who wants precise motion, a consistent design system and fewer rounds of fixes.
How do I write a prompt for website animation?
Describe each animation in five parts: the trigger, the target element, the property that changes, the timing and the easing curve. For example: when the section is 30 percent visible, each headline line moves up 24 pixels and fades in over 700 ms with an 80 ms stagger, using cubic-bezier(0.2, 0.7, 0.2, 1). State limits before the effect, such as reduced-motion support and transform and opacity only.
Why does AI keep giving me simple fade-in animations?
AI tools default to a fade with a small upward slide because a vague request leaves every number to the model, and the safest numbers are the ones used on the most pages. Words such as smooth, modern or premium describe a feeling, not motion. Give a trigger, a distance, a duration, a stagger and an easing curve, and tell the model not to simplify the motion.
Prompt AI for better animationsMake AI sites look less generic
How do I describe easing to an AI?
Name a cubic Bézier curve or describe the acceleration in plain words. A decelerating curve such as cubic-bezier(0.2, 0.7, 0.2, 1) or cubic-bezier(0.22, 1, 0.36, 1) starts fast and settles slowly, which suits elements arriving. An accelerating curve starts slowly and leaves quickly, which suits elements exiting. For GSAP, you can name an ease directly, such as power3.out or expo.out.
What animation durations should I put in a prompt?
Use 120 to 200 ms for small interface feedback such as a button press, and 500 to 900 ms for elements entering the page with a decelerating curve. Keep sibling staggers between 50 and 120 ms and stop staggering after about eight items. Reveal distances of 16 to 40 pixels read well, while a 200 pixel slide looks like a mistake.
How do I describe a scroll animation in a prompt?
Say whether the motion plays once when an element enters or is scrubbed to scroll progress, then give the scroll range. For a reveal: trigger when the section is 30 percent visible, play once. For a scrubbed effect: start when the section top hits the viewport top, end after 200 percent of the viewport height, pin the section and tie progress to scroll. Name the library if you want one, such as GSAP ScrollTrigger.
How do I prompt for a scroll-scrubbed video hero?
Ask for a pinned hero where video playback position follows scroll progress, and give the scroll length, the fallback and the encoding. Say the video should be muted, inline and encoded with frequent keyframes so seeking is smooth, and that reduced motion shows a single still frame. Ask for a poster image so the hero is not blank while the file loads.
What are the five parts of a motion prompt?
A motion prompt has five parts: trigger, target, property, timing and easing. The trigger says what starts it, the target says which element moves, the property says what changes, the timing gives duration and stagger, and the easing says how it accelerates. Writing all five in the same order means nothing is left for the model to guess, and you can check each one in the result.
Should I ask AI for the whole website at once or one section at a time?
Ask for one section at a time, in the order a visitor reads: the hero first, then each section, then the transitions. A whole-page request spreads the model's attention thin, and the last sections get the least care. Section by section, each result is easy to check and a mistake stays in one place. The exception is a complete template build prompt, which is written to be built in one go.
Prompt AI for better animationsBuild an animated website with AI
How long should a prompt for a website be?
A prompt should be as long as it takes to fix every decision you care about, which for a full animated site often means a long, structured spec rather than a paragraph. Short prompts leave the design to the model. AnimatedWebs build prompts are long Markdown documents with labeled sections. If a builder stalls on a long prompt, keep the spec but build the hero first and add sections in later messages.
What does an AnimatedWebs build prompt contain?
An AnimatedWebs build prompt is a long Markdown spec with labeled sections: mood, palette with hex values, typography with sizes, the hero and each section in order, interactions, a motion system with durations, easing and triggers, WebGL details where used, responsive behavior, a quality bar with reduced-motion rules, the stack and the deliverable. It is written to paste into Claude Code, Cursor, Lovable, v0, Bolt or ChatGPT, or to fetch through the MCP server.
Is a template prompt better than writing my own prompt?
For motion, a template prompt usually works better because it describes a page you have already played, so the model has structure, timing and constraints to follow. Your own prompt starts from a feeling and leaves gaps the model fills with defaults. A good order is to build the template prompt first, check it against the live demo, then add your brand and copy in separate messages.
What limits should every website prompt include?
Four limits cover most problems: respect prefers-reduced-motion and show final states with no movement, animate only transform and opacity, keep content readable if JavaScript fails, and do not change copy, layout or colors unless asked. Put the limits before the effect description so they apply to everything after them. Models add what you ask for and forget what you did not mention.
How do I prompt AI to support prefers-reduced-motion?
Write one explicit line: respect prefers-reduced-motion, and with it on, show every element in its final state with no movement. For scroll effects, add no parallax, no scroll scrubbing and no auto-playing loops. For WebGL, ask for a still frame or a static fallback. Then test it by turning on reduced motion in your system settings and reloading, because a model rarely adds this without being asked.
How do I prompt AI for fast animations on phones?
Ask for transform and opacity only, a device pixel ratio cap of 2 on any canvas, pausing WebGL and video when they are off screen or the tab is hidden, and lazy loading for heavy media. Ask for shorter travel distances and staggers on small screens. Then test on a real phone, because a desktop browser hides most performance problems that a mid-range phone shows.
Why should I tell AI to animate only transform and opacity?
Browsers can animate transform and opacity on the compositor without recalculating layout, so those animations stay smooth. Animating width, height, top, left or margin forces layout work on every frame and causes jank, especially on phones. One line in the prompt, animate only transform and opacity, prevents most slow animations before they are written.
What is DESIGN.md?
DESIGN.md is a Markdown file that describes a site's design system so an AI tool can follow it: color tokens, type scale, radius, buttons, layout notes and often a build prompt. You add it to your project or paste it into a chat, and the model uses those values instead of inventing its own. Every AnimatedWebs template and style reference comes with a DESIGN.md, plus Tailwind tokens and CSS variables.
How do I use a DESIGN.md file with Claude Code or Cursor?
Save the DESIGN.md at the root of your project and tell the agent to follow it for colors, type and spacing on every change. You can also reference it from CLAUDE.md, AGENTS.md or a Cursor rule so it loads automatically. Through the AnimatedWebs MCP server, the get_style_reference tool returns a style's full DESIGN.md with a Tailwind v4 theme block and CSS variables.
What is the difference between DESIGN.md, Tailwind tokens and CSS variables?
DESIGN.md explains the design system in words and values for an AI tool to read, Tailwind tokens put those values into a Tailwind v4 theme, and CSS variables put them into plain CSS custom properties. They describe the same palette, type and spacing in three formats. Use the one that matches your stack, and keep DESIGN.md in the project so the AI knows why the values exist.
Does a Pro template include an extended DESIGN.md?
Yes. Every AnimatedWebs Pro template comes with an extended DESIGN.md, alongside the full build prompt, Tailwind tokens and CSS variables. Free accounts get styles, DESIGN.md files and the website style extractor. Pro is $19 a month or $149 a year, and a Prompt Pack unlocks 10 Pro templates for $29 once.
How do I give an AI a design system?
Give it the values, not adjectives: a palette with a few colors named by job, two font families with a type scale, a spacing scale, corner radius and button styles. Put them in a DESIGN.md, Tailwind theme or CSS variables file and tell the AI to use only those tokens. A small system named by job, such as background, surface, text, muted and accent, stops the model from spreading colors everywhere.
What are AnimatedWebs style references?
AnimatedWebs style references are ready design systems you can hand to an AI builder, each with a DESIGN.md, a Tailwind v4 theme and CSS variables. There are 43 of them on the Styles page, alongside the design system behind every template. Use one to build original work in that style, without copying the source site's logo, images, copy or trademarks.
How does the AnimatedWebs style extractor work?
Paste the link of any public website into the style extractor and it returns that site's color palette and fonts, plus a ready DESIGN.md, a Tailwind v4 theme and CSS variables for your AI builder. The extractor is a free tool on the AnimatedWebs Styles page. Treat the result as a starting point for your own design, and pair it with an animated template for structure and motion.
Can I copy another website's design with AI?
You can take general ideas such as a palette direction or a type approach, but copying a site's logo, images, copy or distinctive design can infringe its rights. Use extracted colors and fonts as inspiration and build original work around your own content. The same rule applies to AnimatedWebs: its llms.txt tells agents that inspiration is fine but recreating a specific template's design without a license is not.
Should I give AI reference images for a website design?
Yes, if your tool accepts images: a screenshot shows layout, spacing and mood faster than words. Pair the image with written values, because a model reads a screenshot loosely and cannot see motion in a still. Say what to take from the image, such as the grid and type scale, and what to ignore. For motion, a playable reference with a written spec beats any image.
Can AI copy an animation from a video or screenshot?
Only roughly, because a still image carries no timing and most tools read video poorly. The model guesses durations and easing, which usually ends in a fade. Describe the motion you see in the five parts, trigger, target, property, timing and easing, or start from a written spec of a page you can play. An AnimatedWebs build prompt gives the model the motion in words and numbers.
How do I iterate on an AI-generated website?
Treat the first result as a draft and make the second message a review. Compare it with your reference, then ask for one specific change per message, quoting the gap: the duration is 300 ms and the prompt said 700, restore 700. Precise corrections fix the problem in one round, while make it smoother tends to change something else.
Prompt AI for better animationsBuild an animated website with AI
How do I check whether the AI followed my motion prompt?
Check each of the five parts. Does the trigger fire when you said, and only once? Does the right element move, and do siblings stagger in order? Search the code for the duration and easing curve; if they are missing, the model replaced them. Turn on reduced motion and reload: nothing should move. Then scroll back up and test on a phone.
How do I stop AI from changing parts of the page I like?
Say what to leave alone in every request: do not change copy, layout or colors, only add motion to the hero. Name the file or section you want edited and ask for changes there only. Asking for one change per message also limits the blast radius. At the end, ask which file holds the change so you can make the next small tweak yourself.
Should I tell the AI to make the design unique?
No. Unique is not a property a model can set, so the instruction changes nothing. Give concrete decisions instead: two named fonts with a type scale, a five-color palette named by job, a left-aligned hero with a very large headline, and one named signature interaction. Concrete choices leave the model nothing to average, which is what makes a page look distinct.
How do I prompt AI to avoid the generic AI website look?
Make the five decisions that carry personality yourself: type, color, layout, motion and content. Name the font pairing, a small palette, an asymmetric layout, one signature motion, and write the real headline. Also tell the model what to skip: gradient headlines with glowing orbs, glass cards on every section, three identical feature cards and a fade on every element.
What should I stop asking AI for in a website prompt?
Stop asking for stacked adjectives such as elegant, fluid and premium, because the model can satisfy them with any motion. Avoid asking for parallax, particles and text splitting in one message, since all three come out weaker. Drop requests for an animation on every scroll and glass cards on every section. Each is fine once and generic as a default.
Make AI sites look less genericPrompt AI for better animations
Should I use real copy or placeholder text in a website prompt?
Use real copy whenever you have it. Placeholder text invites a generic page, while real headlines reveal layout problems early, such as a title that wraps badly on a phone. Name actual things: a street, a product, a process, a price. Leave out testimonials, ratings and numbers you do not have, because invented proof is worse than none.
Make AI sites look less genericAdapt a template for your niche
Should I tell the AI which framework to use?
Yes. Say whether the page is plain HTML, React, Next.js or Vite, and which animation library to use, such as GSAP, Motion or three.js. Leaving out the stack lets the model choose, and its choice may not match your project or host. Every AnimatedWebs build prompt names its stack, and coding agents should follow the stack your project already uses.
How do I prompt AI for a three.js or WebGL hero?
Describe the scene, the material, the motion and the limits in numbers: the geometry, the shader effect, the colors, the animation speed and how it reacts to the pointer. Add limits: cap the pixel ratio, pause the render loop off screen, show a static fallback under reduced motion or without WebGL, and size the canvas to its container. Start from a working example when you can, because invented shaders often fail.
WebGL hero ideas for SaaSAdd three.js to a websitethree.js questions
How do I prompt AI for GSAP animations?
Name GSAP and the plugins you want, such as ScrollTrigger, then describe each tween with target, properties, duration, ease and stagger. For scroll, give start and end positions, whether to scrub or play once, and whether to pin. Ask for animations to be created inside a context that cleans up on unmount in React, and for a matchMedia check that skips motion under reduced motion.
Should I give the AI code examples in a prompt?
Yes, a short working example is one of the strongest prompts for motion. A model cannot see the effect you imagine, but it can read the code of one that exists and match its structure and timing. A plain CSS version of a reveal with the exact duration and easing gives the model a target that both of you can test.
Where should I put the instructions in a long prompt?
Put the instruction about your business and what to keep at the top, then paste the long spec below it. The opening lines tell the model how to use everything that follows. When you combine a line about your business with an AnimatedWebs build prompt, paste your line first, then the build prompt, and finish by asking for the complete code and a list of anything simplified.
How do I personalize an AnimatedWebs build prompt for my business?
Paste one line about your business before the build prompt: what it is, where it is and which parts of the template to keep, such as keep the scroll interactions and add a reservations section. Then build, compare with the live demo, and change copy, colors and images one message at a time. The /for pages for ChatGPT and Claude include example lines for different businesses.
What is the best way to prompt Claude Code for a website?
Give Claude Code a clear target and rules it keeps: a reference or build prompt, the stack, a DESIGN.md and motion limits in CLAUDE.md. Ask it to build one section, run the dev server, and fix errors before moving on. With the AnimatedWebs plugin or MCP server, you can name a template and Claude Code fetches the build prompt itself, so nothing is retyped.
What is the best way to prompt Lovable, v0 or Bolt for animation?
Paste a detailed spec rather than a one-line idea, then iterate one change per message. Name the motion in numbers, state what to leave untouched, and build the hero before the rest if the builder stalls. On AnimatedWebs, the Lovable, v0 and Bolt buttons on a template page copy the full build prompt and open the builder with it, which saves writing the first prompt yourself.
How do I write a prompt for a website hero section?
Give the hero its layout, headline, subhead, buttons, visual and entrance motion in concrete terms. For example: left-aligned headline at 4.5rem with tight line height, one-sentence subhead, primary and ghost buttons, image bleeding off the right edge, and lines that rise 24 pixels and fade in over 700 ms with an 80 ms stagger on load. Add reduced-motion and phone rules at the top.
How do I prompt AI for a type scale?
Name two font families, one for headlines and one for body text, and give a fluid scale with clamp() so headlines are large on desktop and still fit on a phone. Add line height and letter spacing: tight line height and slightly negative tracking on big headlines, generous line height on body text. Concrete values replace the system default font, which is the most common sign of an AI-built page.
How many colors should I give an AI for a website?
Give about five colors named by job: background, surface, text, muted text and one accent used rarely. A small system named by role stops the model from spreading colors around and keeps the accent meaningful. Tint neutrals toward a hue instead of pure black and white, and add a light-mode set if you want one.
Can I reuse prompts across website projects?
Yes, and it is worth keeping a small prompt library. Save the limits block and the five-part motion descriptions that worked, then reuse them on the next page, changing only the section and the numbers. Over a few projects you get a house style for motion, and handing work to a teammate or another tool gets easier because the prompt carries the decisions.
How do I prompt AI to add a single animated component?
Name the component, where it goes, its states and its motion, and say what to leave alone. For example: add a magnetic primary button in the hero, scale to 1.04 on hover over 180 ms, follow the pointer by up to 6 pixels, no motion under reduced motion, do not change the layout. You can also describe a component at the AnimatedWebs AI UI generator, with 5 generations a day on Free.
What makes a good prompt for an animated background?
Say what the background shows, how fast it moves, how strong it is behind text, and what happens on phones and under reduced motion. Ask for contrast that keeps text readable, a pause when off screen, and a still or simplified version under reduced motion. For a gradient, give the colors and speed. The AnimatedWebs Gradient Studio makes live animated gradients you can copy as HTML, React or CSS.
Do prompts work the same in every AI tool?
No. The same prompt gives different results in different tools and even between runs, because each tool uses different models, defaults and context sizes. Browser chats may simplify a long spec to fit one reply, while coding agents can split it across files. Keep the reference open, compare each result, and adjust the request for the tool rather than expecting identical output.
Should I ask the AI to list what it simplified?
Yes. End a long build request with: give me the complete code in one reply, and list anything you simplified. Models often trim the hardest parts of a long spec, such as shaders, scroll timing or staggered sequences, without saying so. The list tells you exactly what to ask for next, one item per message.
How do I prompt an AI agent to fetch an AnimatedWebs template?
Name the server, the tool and the template slug: use the animatedwebs MCP to get the build prompt for this template and build it as the landing page of this repo. The slug is the last part of the template page address. You can also describe the site and ask the agent to search the catalog and show three options with live demo links before building.
How do I prompt AI for accessible animation?
Ask for reduced-motion support, a visible pause control for anything that moves for more than five seconds, focus-visible styles, semantic landmarks and text contrast of at least 4.5 to 1. Tell the model not to hide content behind animation, so the page stays readable if a script fails. Then test with reduced motion on and with a keyboard only.
Can a prompt make AI-generated images look consistent on a site?
Yes. Decide the look once, write it down as a fixed description of crop, lighting, color and grain, and reuse that wording for every image so the set holds together. Three images with one treatment look more designed than twelve from different styles. Check the license of anything you did not make, and replace any demo media before publishing.
Do I need to know code to prompt AI for a good website?
No. You need to make decisions, not write code: what moves, when, how far, how long and how it feels, plus fonts, colors and real copy. Numbers and named choices are enough for the model to build from and for you to check. If you would rather not prompt at all, AnimatedWebs Studio lets you edit a template visually with AI and publish it.
How do I prompt AI to tell me where the animation code lives?
End the request with: after it works, tell me which file holds the animation and what to edit to change the timing. The answer lets you make the next small tweak yourself in seconds, without another round with the model. It also shows whether the timing sits in one place or is scattered across components, which is worth fixing early.
How do I prompt AI to pause animations that are off screen?
Ask for an IntersectionObserver on every canvas, video and looping animation that pauses it when it leaves the viewport and resumes it on return, plus a visibilitychange listener that stops render loops when the tab is hidden. For three.js, ask for the requestAnimationFrame loop to stop rather than keep rendering an invisible scene. This saves battery and keeps scrolling smooth on phones.