Skip to content

Website animation best practices: use motion to help, not to show off

Animation can guide attention and make a site feel alive. It can also slow pages, distract readers and make some people ill. Here is how to use it well.

The team behind Folio at wrxstack8 min read

Use website animation only when it explains something or confirms an action: a button responding, a menu opening, content settling into place. Keep most transitions between 150 and 400 milliseconds, avoid motion that loops or moves large areas, respect the visitor's reduced-motion setting, and make sure nothing important depends on an animation finishing.

Purpose

What animation is for

Motion carries meaning when it answers a question the visitor has. Did my tap register? Where did that panel come from? What changed? A button that dips slightly when pressed, a menu that slides from the edge it lives on, or a new item that fades in where it will sit all explain the interface without words.

Decorative motion carries no meaning, and visitors pay for it with attention. An element that bounces, drifts or pulses constantly competes with your text. Every moving thing takes a share of the reader's focus, so the sensible default is stillness and the exception is purposeful movement.

A useful test: remove the animation and ask what the visitor loses. If the answer is "nothing, but it was nice", it is optional, and optional things should be cheap, quiet and easy to switch off.

Good uses

Five places motion earns its keep

These patterns help most visitors and rarely annoy anyone.

Feedback

Responding to touch

Buttons and links that change slightly on hover, focus and press confirm that the page is listening. Keep the change small and fast.

Context

Opening and closing panels

A menu or dialog that appears from where it was triggered keeps the visitor oriented. Reverse the motion on close.

Loading

Showing that something is happening

A simple placeholder or progress indication stops people from tapping twice. It should be quiet and disappear the moment content arrives.

Focus

Revealing content gently

A soft fade as a section enters the screen can help, provided the text is readable immediately and nothing is held back waiting for scroll.

Change

Explaining a change of state

When a filter reorders projects or an accordion expands, motion shows what moved and where. Without it, the page can seem to jump.

Rules

Seven rules for animation that behaves

Follow these and you will avoid nearly every complaint.

  1. Keep it short.

    Small changes feel natural at 150 to 250 milliseconds, larger panels at 250 to 400. Anything beyond half a second begins to feel like waiting.

  2. Use easing, not linear motion.

    Real objects accelerate and slow down. A gentle ease-out for entering elements and ease-in for leaving ones looks natural and calm.

  3. Animate cheap properties.

    Transforms and opacity are smooth on most devices. Animating width, height or position on large areas forces expensive layout work and stutters on phones.

  4. Never block the content.

    Text and the main action must be usable at once. Do not hide a headline until an effect completes, and do not make visitors wait through an intro.

  5. Avoid constant or looping motion.

    Autoplaying carousels, bouncing arrows and endlessly moving backgrounds distract and drain batteries. If something must loop, give a visible way to pause it.

  6. Honour reduced motion.

    When the visitor has asked their device to reduce motion, replace movement with a simple fade or nothing at all.

  7. Test on real hardware.

    Try a mid-range phone on mobile data. A smooth effect on a fast laptop can stutter badly elsewhere.

Accessibility

Reduced motion is not optional

For some people, large or parallax-style movement causes dizziness, headaches or nausea, particularly with vestibular disorders. Operating systems offer a "reduce motion" setting, and websites can read it through a standard browser feature. Respecting it is a core accessibility requirement, not a courtesy.

In practice, this means swapping slides, zooms and parallax for fades or instant changes when the setting is on. It means turning off autoplaying video backgrounds, and it means not tying the reveal of essential content to the scroll position.

Accessibility guidelines also ask that anything that moves, blinks or scrolls for more than five seconds can be paused, stopped or hidden, unless it is essential. A looping hero video should have a pause control, or better, no loop at all.

Remember keyboard and screen reader users, too. An animated menu must still be reachable by keyboard, and content that appears must be available to assistive technology at the same time as it appears visually. Beautiful motion that locks out some visitors is a defect.

Performance

Speed is part of the experience

A heavy animation library, a large hero video or dozens of scroll-triggered effects can slow your first view, especially on mid-range phones and slower connections. Slow pages lose visitors and weaken the search signals that measure loading and responsiveness.

Prefer plain styling for transitions where you can. Use video sparingly, compress it, give it a poster image and avoid autoplay with sound. Load decorative effects after the main content, and drop them for visitors who have asked to save data.

Measure rather than guess. Run a speed test on a throttled phone profile and watch for layout jumps as things animate in. If an effect costs you a noticeable delay, it is not worth it.

Portfolios and businesses

How much is right for your kind of site

For a creative portfolio, motion can be part of the craft. A motion designer or interactive artist should show it, with care to keep the rest of the site calm and quick. Give the work room and let the interface stay quiet around it.

For a business site, restraint serves trust. A clinic, firm or shop should look stable and answer questions fast: hours, location, contact, prices. Subtle hover and focus states are plenty. A restaurant or studio may add gentle image transitions to set a mood, as long as the phone number stays one tap away.

In Folio, designs ship with considered, restrained motion that respects the reduced-motion setting. If you add your own video or animated graphics, apply the same rules above to them.

Frequently asked questions

How long should a website animation last?

Most interface animations feel best between 150 and 400 milliseconds. Small changes such as hover states are quicker, and larger movements such as a panel opening can be a little longer. Anything over about half a second feels slow.

Do animations hurt SEO?

Not directly, but heavy animation can slow loading and responsiveness, which affects the page experience signals search engines consider. Content hidden until an effect runs can also cause problems, so keep text visible and in the page from the start.

What is prefers-reduced-motion?

It is a browser setting that reflects a visitor's device preference to minimise movement. A site can read it and reduce or remove animation accordingly. Honouring it is part of accessible design.

Are parallax and scroll effects a good idea?

Use them sparingly and always offer a calm alternative. They are among the most common triggers for motion discomfort, and they can be janky on phones. Many sites look better without them.

Should I use a video background on my homepage?

Only if it adds real value, loads fast, is silent and can be paused. For most sites, a high-quality still image with a clear headline loads faster and reads more clearly.

How do I test whether my animations are too much?

Show the page to someone unfamiliar with it on a phone and watch whether they find the main action quickly. Then turn on reduce motion and check that everything still works and nothing is missing.

Start free

Build the portfolio, resume, and site in one place.

A theme, an AI resume, a custom domain, and the SEO built in. No card required to start, and your work is yours to export any time.

Keep reading