@awesomate/hosting-mcp
Version:
Awesomate MCP server — lets Claude manage your Awesomate WordPress hosting, plan, limits, n8n automations, and build Node/static apps + databases
89 lines (71 loc) • 4.42 kB
Markdown
# Motion: when to move, how fast, and how smoothly
A page gets one authored moment of motion that says the business's idea, plus quiet feedback on the
things people touch. Cinematic, scroll-tied moments on a WordPress site are scroll scenes: the
awesomate-hosting skill's `references/scroll-scenes.md`. This file is everything else. Sources and
licences: [NOTICE.md](NOTICE.md).
## 1. Should it move at all?
| How often a person sees it | Decision |
| --- | --- |
| Every visit, many times (navigation, tabs, list rows, keyboard actions) | No animation |
| Often (hover, toggles, expanding a list) | Colour or opacity only, under 200 ms |
| Occasionally (menus, modals, drawers, form feedback) | Standard animation, below |
| Rarely (the hero on arrival, a success message, a first visit) | Room for the one authored moment |
Every animation answers "why does this move?" with one of: feedback (the button heard you), state
(something changed), spatial sense (where the drawer came from), explanation (how the service
works), or avoiding a jarring jump. "It looks good" is not on the list.
## 2. Tokens
Make sure the design system's `tokens.css` has all of these (add any it is missing) and use them
everywhere, so no transition points at a token that does not exist:
```css
:root {
--ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* things arriving or leaving, most UI */
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* things travelling while visible: panels, wipes */
--ease-expo: cubic-bezier(0.16, 1, 0.3, 1); /* long reveals, 800 ms and up */
--dur-press: 140ms;
--dur-hover: 180ms;
--dur-ui: 220ms;
--dur-reveal: 800ms;
}
```
Never `ease-in` for anything a person is watching start: it feels late. Use `linear` only for
constant motion (a progress bar, a marquee). Colour changes use plain `ease`.
| What | Duration |
| --- | --- |
| Button press | 100 to 160 ms |
| Hover | 150 to 200 ms |
| Menus, dropdowns, tooltips | 150 to 250 ms |
| Modals and drawers | 250 to 450 ms |
| A hero or section reveal | 500 to 900 ms |
Leaving is quicker than arriving: about 70% of the entrance time. Presses, hovers, menus and form
feedback stay under 300 ms; only modals, drawers and reveals go longer.
## 3. Rules for marketing pages
- One hero entrance at most. Never the same fade-and-rise on every section: it holds content back from
people who scroll fast and is the most recognisable generated look.
- A reveal fires once. Content that hides again as the visitor scrolls back fights the reader.
- Content is visible by default. A reveal starts from an already readable state or is added by script
only when the browser supports it, so a failed script never leaves a blank band.
- Press feedback is `transform: scale(0.97)` on `:active`. Nothing enters from `scale(0)`: start at
0.95 or more with opacity.
- Stagger items 30 to 80 ms apart and keep the whole stagger under 300 ms.
- Gate hover effects: `@media (hover: hover) and (pointer: fine)`, so a tap on a phone does not stick.
- No preloaders, custom cursors, scroll hijacking or smooth-scroll libraries.
- In Elementor, give the entrance animation to the hero only and leave every other widget's
entrance animation off. Motion Effects (parallax, mouse track) stay off unless they are the
authored moment.
## 4. Reduced motion
Reduced means fewer and gentler, not none. Under `@media (prefers-reduced-motion: reduce)` keep
opacity and colour changes that explain a change, and drop movement, scale and parallax. Muted loops
stop on their poster frame. Any motion that runs over five seconds next to other content has a
pause control in every mode.
## 5. Smoothness
| Cost | Properties | Use |
| --- | --- | --- |
| Cheapest | `transform`, `opacity` | Animate these |
| Depends on the browser | `filter`, `clip-path` | Test on a mid-range phone first |
| Repaints every frame | `box-shadow`, `border-radius`, `color` | Briefly, on small elements |
| Re-lays out the page | `width`, `height`, `padding`, `margin`, `top`, `left` | Never; use `scale()` and `translate()` |
- To animate a shadow, put it on a pseudo-element and fade that element's `opacity`; never animate
`box-shadow` or a `drop-shadow()` filter.
- `will-change` only on an element you have seen stutter, and only while it moves.
- Blur over about 20 px is expensive on phones; keep big blurs static.
- Never `transition: all`: name the properties.