agentleFS
Kevin-Liu-01Kevin-Liu-01/Loop/.cursor/rules/frontend-10x-motion.mdc

Loop / rules

Cursor rule18 starsChanged 8 months agoMITView on GitHub

Motion, parallax, 3D, shader, and performance rules for distinctive frontend work.

The file

Show its rules and text

We split this frontend-10x-motion.mdc into the rules it gives an agent

23 rules. About 0 are common, 21 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈21

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If a page has a heavy 3D or shader hero, quiet the rest of the UI.

    line 18
  2. Distinctive:

    Do not propose plain CSS as the primary animation system by default.

    line 19
  3. Distinctive:

    Use CSS only for tiny hover/focus states, tokenized fallbacks, native progressive enhancement, and view-transition class styling.

    line 20
  4. Distinctive:

    Use Motion for component and layout animation.

    line 21
  5. Distinctive:

    Use GSAP for orchestration, mixed-surface sequences, and ScrollTrigger narratives.

    line 22
  6. Distinctive:

    Use React Three Fiber plus drei for React 3D scenes.

    line 24
  7. Distinctive:

    Use OGL or shader-first pipelines when the surface itself is the product.

    line 25
  8. Distinctive:

    Use shaders when the surface itself is the brand move, not as filler.

    line 26
  9. Distinctive:

    Prefer interruptible transitions for interaction states and keyframes for staged one-shot sequences.

    line 27
  10. Distinctive:

    Treat sound, haptics, and toasts as optional feedback layers for the interaction system, not random garnish.

    line 31
  11. Very specific:

    Use React startTransition, useTransition, useDeferredValue, and useEffectEvent to keep animated UIs responsive.

    line 32
  12. Distinctive:

    Use React or browser view transitions as progressive enhancement when the support matrix and framework version allow it.

    line 33
  13. Very specific:

    Prefer animating transform and opacity.

    line 37
  14. Distinctive:

    Do not animate large blur or shadow changes across big surfaces unless profiling says it is fine.

    line 43
  15. Distinctive:

    Do not hide expensive animation behavior behind giant CSS keyframe stacks.

    line 44
  16. Distinctive:

    Keep pointer movement small and clamped.

    line 48
  17. Distinctive:

    Do not put independent drift on every layer.

    line 50
  18. Distinctive:

    Never let text feel detached from its container.

    line 51
  19. Distinctive:

    Keep text and CTA zones on calmer layers than decorative motion.

    line 52
  20. Distinctive:

    Every pinned or scrubbed section must explain something.

    line 56
  21. Distinctive:

    Avoid long scroll-jacking sequences.

    line 57
  22. Distinctive:

    Test touch devices before committing to choreography-heavy storytelling.

    line 58
  23. Distinctive:

    Do not drop Lenis into dense docs or dashboards just because it sounds premium.

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
frontend-10x-motion.mdc
---
description: Motion, parallax, 3D, shader, and performance rules for distinctive frontend work.
globs: ["**/*.{ts,tsx,js,jsx,css,scss}"]
alwaysApply: true
---

# Motion and 3D Rules

Motion is a system with three layers:

- ambient: slow loops, shader drift, environmental life
- interaction: hover, press, open, focus
- narrative: scroll and route choreography

Apply these rules:

- One strong hero move beats many small distractions.
- If a page has a heavy 3D or shader hero, quiet the rest of the UI.
- Do not propose plain CSS as the primary animation system by default.
- Use CSS only for tiny hover/focus states, tokenized fallbacks, native progressive enhancement, and view-transition class styling.
- Use Motion for component and layout animation.
- Use GSAP for orchestration, mixed-surface sequences, and ScrollTrigger narratives.
- Pair GSAP with Lenis when synchronized scroll is part of the concept.
- Use React Three Fiber plus drei for React 3D scenes.
- Use OGL or shader-first pipelines when the surface itself is the product.
- Use shaders when the surface itself is the brand move, not as filler.
- Prefer interruptible transitions for interaction states and keyframes for staged one-shot sequences.
- Animate contextual icon swaps with small opacity, scale, and blur changes instead of hard replacing them.
- Split enter animations into semantic chunks and stagger them lightly.
- Make exit animations subtler than enter animations.
- Treat sound, haptics, and toasts as optional feedback layers for the interaction system, not random garnish.
- Use React `startTransition`, `useTransition`, `useDeferredValue`, and `useEffectEvent` to keep animated UIs responsive.
- Use React or browser view transitions as progressive enhancement when the support matrix and framework version allow it.

Performance rules:

- Prefer animating `transform` and `opacity`.
- Be careful with `filter`, `backdrop-filter`, large blur, and animated shadow.
- Narrow `will-change` usage.
- Ship a readable poster frame before heavy canvas or video fully hydrates.
- Degrade aggressively on mobile and under `prefers-reduced-motion`.
- Above-the-fold copy and CTA must remain readable while motion runs.
- Do not animate large blur or shadow changes across big surfaces unless profiling says it is fine.
- Do not hide expensive animation behavior behind giant CSS keyframe stacks.

Parallax rules:

- Keep pointer movement small and clamped.
- Foreground moves more than background.
- Do not put independent drift on every layer.
- Never let text feel detached from its container.
- Keep text and CTA zones on calmer layers than decorative motion.

Scroll rules:

- Every pinned or scrubbed section must explain something.
- Avoid long scroll-jacking sequences.
- Test touch devices before committing to choreography-heavy storytelling.
- Do not drop Lenis into dense docs or dashboards just because it sounds premium.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.