continuous-loops
Skill94 starsChanged 11 months agoMITView on GitHub
Use when creating ongoing animations - loading spinners, pulsing indicators, ambient motion, background effects, or any animation that repeats indefinitely.
In this repository144 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- 3d-spatialSkill
- accessible-motionSkill
- brand-marketingSkill
- data-visualizationSkill
- game-developmentSkill
- micro-interactionsSkill
- mobile-touchSkill
- page-transitionsSkill
- presentationsSkill
- universal-fallbackSkill
- video-motion-graphicsSkill
- web-motion-designSkill
- anticipation-payoffSkill
- attention-directionSkill
- character-appealSkill
- emotional-narrativeSkill
- exaggerated-claritySkill
- naturalistic-motionSkill
- physics-intuitionSkill
- problem-diagnosisSkill
- rhythm-pacingSkill
- spatial-thinkingSkill
- timing-masterySkill
- universal-mindsetSkill
- accessibility-advocateSkill
- animator-traditionalSkill
- brand-strategistSkill
- creative-directorSkill
- educator-teacherSkill
- filmmakerSkill
- frontend-developerSkill
- game-designerSkill
- motion-designerSkill
- product-managerSkill
- universal-practitionerSkill
- ux-researcherSkill
- Animation Principles - Absolute BeginnerSkill
- Animation Principles - AdvancedSkill
- Animation Principles - Deep DiveSkill
- Animation Principles - ExpertSkill
- Animation Principles - IntermediateSkill
- Animation Principles - MasterSkill
- Animation Principles - NoviceSkill
- Animation Principles - Quick StartSkill
- Animation Principles - RefresherSkill
- Animation Principles - Teaching OthersSkill
- Animation Principles - TroubleshootingSkill
- Animation Principles - Universal ReferenceSkill
- attention-grabbersSkill
- entrance-animationsSkill
- exit-animationsSkill
- feedback-indicatorsSkill
- gesture-responsesSkill
- hover-interactionsSkill
- loading-statesSkill
- scroll-animationsSkill
- state-changesSkill
- transition-sequencesSkill
- universal-patternsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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 22
Slow In/Slow Out: Use ease-in-out for smooth oscillations.
- Very specific: line 82
Use transform and opacity only - no layout properties
- Very specific: line 83
Add will-change: transform for loops over 1 second
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
Continuous Loop Animations
Apply Disney's 12 principles to animations that never stop.
Principle Application
Squash & Stretch: Subtle scale oscillation (0.98-1.02) creates organic breathing. Avoid rigid mechanical loops.
Anticipation: Build anticipation into the loop cycle. Brief pause at extremes before reversing.
Staging: Loops should support, not dominate. Keep amplitude subtle for background elements.
Straight Ahead vs Pose-to-Pose: Design keyframe poses that loop seamlessly. End frame must flow into start frame.
Follow Through & Overlapping: Multi-part loops have elements at different phases. Three dots pulse with 120° phase offset.
Slow In/Slow Out: Use ease-in-out for smooth oscillations. Linear motion looks mechanical.
Arcs: Circular motion follows true arcs. Spinners rotate, pendulums swing, orbits circle.
Secondary Action: Primary rotation + secondary wobble. Spinner spins while slightly bouncing.
Timing:
- Fast loops: 500-800ms (spinners, urgent indicators)
- Medium loops: 1000-2000ms (pulsing, breathing)
- Slow loops: 2000-4000ms (ambient, background)
Exaggeration: Minimal for loops - they're already attention-grabbing through repetition.
Solid Drawing: Loops must be seamless. Any jump between end and start destroys the illusion.
Appeal: Loops should be hypnotic, not annoying. Test at 30 seconds - still pleasant?
Timing Recommendations
| Loop Type | Duration | Easing | Iterations |
| Spinner | 600-800ms | linear (rotation) | infinite |
| Pulse | 1500-2000ms | ease-in-out | infinite |
| Skeleton Shimmer | 1500ms | ease-in-out | infinite |
| Typing Dots | 1400ms | ease-in-out | infinite |
| Breathing | 3000-4000ms | ease-in-out | infinite |
| Floating | 3000-5000ms | ease-in-out | infinite |
Implementation Patterns
/* Smooth spinner */
.spinner {
animation: spin 700ms linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Organic pulse */
.pulse {
animation: pulse 2000ms ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.05); opacity: 0.8; }
}
/* Staggered dots */
.dot {
animation: bounce 1400ms ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 160ms; }
.dot:nth-child(3) { animation-delay: 320ms; }Performance Rules
- Use
transformandopacityonly - no layout properties - Add
will-change: transformfor loops over 1 second - Pause off-screen loops with Intersection Observer
- Respect
prefers-reduced-motion- reduce or stop loops
Seamless Loop Formula
For breathing/pulsing: 0%, 100% keyframes must be identical. Use alternate direction for simpler ping-pong effects.
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.

