Loop / rules
Cursor rule18 starsChanged 8 months agoMITView on GitHub
Motion, parallax, 3D, shader, and performance rules for distinctive frontend work.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .cursor/rules/frontend-10x-browser-debugging.mdcCursor rule
- .cursor/rules/frontend-10x-external-skills.mdcCursor rule
- .cursor/rules/frontend-10x-prompting.mdcCursor rule
- .cursor/rules/frontend-10x-system.mdcCursor rule
- public/llms.txtllms.txt
- gsap-scrolltriggerSkill
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
- Distinctive: line 18
If a page has a heavy 3D or shader hero, quiet the rest of the UI.
- Distinctive: line 19
Do not propose plain CSS as the primary animation system by default.
- Distinctive: line 20
Use CSS only for tiny hover/focus states, tokenized fallbacks, native progressive enhancement, and view-transition class styling.
- Distinctive: line 21
Use Motion for component and layout animation.
- Distinctive: line 22
Use GSAP for orchestration, mixed-surface sequences, and ScrollTrigger narratives.
- Distinctive: line 24
Use React Three Fiber plus drei for React 3D scenes.
- Distinctive: line 25
Use OGL or shader-first pipelines when the surface itself is the product.
- Distinctive: line 26
Use shaders when the surface itself is the brand move, not as filler.
- Distinctive: line 27
Prefer interruptible transitions for interaction states and keyframes for staged one-shot sequences.
- Distinctive: line 31
Treat sound, haptics, and toasts as optional feedback layers for the interaction system, not random garnish.
- Very specific: line 32
Use React startTransition, useTransition, useDeferredValue, and useEffectEvent to keep animated UIs responsive.
- Distinctive: line 33
Use React or browser view transitions as progressive enhancement when the support matrix and framework version allow it.
- Very specific: line 37
Prefer animating transform and opacity.
- Distinctive: line 43
Do not animate large blur or shadow changes across big surfaces unless profiling says it is fine.
- Distinctive: line 44
Do not hide expensive animation behavior behind giant CSS keyframe stacks.
- Distinctive: line 48
Keep pointer movement small and clamped.
- Distinctive: line 50
Do not put independent drift on every layer.
- Distinctive: line 51
Never let text feel detached from its container.
- Distinctive: line 52
Keep text and CTA zones on calmer layers than decorative motion.
- Distinctive: line 56
Every pinned or scrubbed section must explain something.
- Distinctive: line 57
Avoid long scroll-jacking sequences.
- Distinctive: line 58
Test touch devices before committing to choreography-heavy storytelling.
- Distinctive: line 59
Do not drop Lenis into dense docs or dashboards just because it sounds premium.
≈ “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.
Files
---
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.
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
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.

