attention
Skill7 starsChanged 10 months agoMITView on GitHub
Attention-directing animations including pulsing indicators, notification badges, highlight effects, and focus guidance. Use when drawing user attention to specific elements, indicating updates, or guiding user focus through an interface.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- franciscohermida/skillstheir own version, first seen Oct 13, 2026
- sponge-b0b/Polaristheir own version, first seen Aug 3, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- sponge-b0b/Polaris★ 4same name
- franciscohermida/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository87 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- motion-designSkill
- 3d-transformsSkill
- accessibilitySkill
- android-nativeSkill
- animation-recipesSkill
- anticipationSkill
- arc-motionSkill
- attention-choreographySkill
- audio-reactiveSkill
- blurSkill
- brand-animationSkill
- cameraSkill
- characterSkill
- choice-resolutionSkill
- cinematicSkill
- code-generationSkill
- colorSkill
- component-animationsSkill
- compositingSkill
- consequenceSkill
- container-transformSkill
- css-advancedSkill
- data-visualizationSkill
- depthSkill
- distortionSkill
- dramaturgySkill
- durationSkill
- easingSkill
- emotional-journeySkill
- emotion-mappingSkill
- emotion-selectionSkill
- empty-statesSkill
- entrance-patternsSkill
- exaggerationSkill
- exit-patternsSkill
- exportSkill
- figma-integrationSkill
- follow-throughSkill
- frame-timingSkill
- gesture-motionSkill
- glow-shadowSkill
- intentSkill
- ios-nativeSkill
- loading-statesSkill
- loopingSkill
- lottieSkill
- masksSkill
- microstateSkill
- morphingSkill
- motion-auditSkill
- motion-blurSkill
- motion-principlesSkill
- motion-specsSkill
- narrative-arcSkill
- notificationsSkill
- onboardingSkill
- opacitySkill
- orchestratorSkill
- particlesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 516
Respect focus: - don't animate focused elements excessively
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Attention
Animations that direct and capture user attention.
Standards Reference
| Standard | Documentation |
| W3C DTCG | designtokens.org |
| WCAG 2.1 | w3.org/WAI/WCAG21/Understanding |
| Material Design | m3.material.io/foundations/interaction |
Quick Reference
Uses tokens from: tokens/motion.tokens.json
Attention Intensities
| Level | Duration | Use |
| Subtle | 2s cycle | Passive indication |
| Moderate | 1s cycle | Active notification |
| Urgent | 0.5s cycle | Critical alert |
Selection Guide
What attention level?
│
├── SUBTLE → Passive indication
│ ├── Gentle pulse → "something here"
│ ├── Soft glow → ambient highlight
│ └── Slow breathe → available action
│
├── MODERATE → Active notification
│ ├── Badge bounce → new content
│ ├── Pulse ring → update available
│ └── Shimmer → loading/processing
│
├── URGENT → Critical alert
│ ├── Rapid pulse → requires action
│ ├── Shake → error/warning
│ └── Flash → immediate attention
│
├── GUIDED → Focus direction
│ ├── Spotlight → isolated focus
│ ├── Arrow pulse → directional hint
│ └── Highlight sweep → scan guidance
│
└── CELEBRATION → Positive feedback
├── Confetti → achievement
├── Burst → success
└── Sparkle → rewardPatterns
Pulse Indicator
Gentle pulsing attention.
CSS:
.pulse {
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.05);
opacity: 0.8;
}
}
/* Urgent pulse */
.pulse-urgent {
animation: pulse-urgent 0.5s ease-in-out infinite;
}
@keyframes pulse-urgent {
0%, 100% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}
50% {
transform: scale(1.02);
box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
}
}Notification Badge
Bouncing badge indicator.
CSS:
.badge {
position: absolute;
top: -8px;
right: -8px;
min-width: 20px;
height: 20px;
background: #ef4444;
border-radius: 10px;
color: white;
font-size: 12px;
display: flex;
align-items: center;
justify-content: center;
}
.badge.new {
animation: badge-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badge-bounce {
0% {
transform: scale(0);
}
50% {
transform: scale(1.3);
}
100% {
transform: scale(1);
}
}
/* Continuous attention */
.badge.attention {
animation: badge-pulse 1s ease-in-out infinite;
}
@keyframes badge-pulse {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.15);
}
}JavaScript (Animate on count change):
function updateBadge(badge, count) {
const currentCount = parseInt(badge.textContent) || 0;
if (count > currentCount) {
badge.textContent = count;
badge.classList.remove('new');
void badge.offsetWidth; // Trigger reflow
badge.classList.add('new');
} else {
badge.textContent = count;
}
badge.style.display = count > 0 ? 'flex' : 'none';
}Ring Pulse
Expanding ring effect.
CSS:
.ring-pulse {
position: relative;
}
.ring-pulse::before {
content: '';
position: absolute;
inset: -4px;
border: 2px solid #3b82f6;
border-radius: inherit;
animation: ring-expand 1.5s ease-out infinite;
}
@keyframes ring-expand {
0% {
transform: scale(1);
opacity: 1;
}
100% {
transform: scale(1.5);
opacity: 0;
}
}
/* Multiple rings */
.ring-pulse::after {
content: '';
position: absolute;
inset: -4px;
border: 2px solid #3b82f6;
border-radius: inherit;
animation: ring-expand 1.5s ease-out infinite 0.5s;
}Spotlight Focus
Highlight specific element.
CSS:
.spotlight-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
pointer-events: none;
opacity: 0;
transition: opacity 300ms;
}
.spotlight-overlay.active {
opacity: 1;
}
.spotlight-target {
position: relative;
z-index: 1001;
box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
border-radius: 8px;
animation: spotlight-pulse 2s ease-in-out infinite;
}
@keyframes spotlight-pulse {
0%, 100% {
box-shadow:
0 0 0 9999px rgba(0, 0, 0, 0.7),
0 0 0 4px rgba(59, 130, 246, 0.5);
}
50% {
box-shadow:
0 0 0 9999px rgba(0, 0, 0, 0.7),
0 0 0 8px rgba(59, 130, 246, 0.3);
}
}JavaScript:
function spotlight(element) {
const overlay = document.createElement('div');
overlay.className = 'spotlight-overlay';
document.body.appendChild(overlay);
requestAnimationFrame(() => {
overlay.classList.add('active');
element.classList.add('spotlight-target');
});
return {
dismiss: () => {
overlay.classList.remove('active');
element.classList.remove('spotlight-target');
setTimeout(() => overlay.remove(), 300);
}
};
}Shimmer Loading
Skeleton loading shimmer.
CSS:
.shimmer {
background: linear-gradient(
90deg,
#f0f0f0 0%,
#e0e0e0 50%,
#f0f0f0 100%
);
background-size: 200% 100%;
animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}Directional Arrow
Pulsing directional hint.
CSS:
.arrow-hint {
animation: arrow-bounce 1s ease-in-out infinite;
}
/* Point down */
.arrow-hint.down {
animation-name: arrow-bounce-down;
}
@keyframes arrow-bounce-down {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(8px);
}
}
/* Point right */
.arrow-hint.right {
animation-name: arrow-bounce-right;
}
@keyframes arrow-bounce-right {
0%, 100% {
transform: translateX(0);
}
50% {
transform: translateX(8px);
}
}Highlight Sweep
Scanning highlight effect.
CSS:
.highlight-sweep {
position: relative;
overflow: hidden;
}
.highlight-sweep::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 50%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.4),
transparent
);
animation: sweep 2s ease-in-out infinite;
}
@keyframes sweep {
0% {
left: -100%;
}
50%, 100% {
left: 200%;
}
}Toast Notification
Attention-grabbing notification.
CSS:
.toast {
position: fixed;
bottom: 24px;
right: 24px;
padding: 16px 24px;
background: #1f2937;
color: white;
border-radius: 8px;
transform: translateY(100px);
opacity: 0;
transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
opacity 300ms ease-out;
}
.toast.visible {
transform: translateY(0);
opacity: 1;
}
/* With progress bar */
.toast.auto-dismiss::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
height: 3px;
background: #3b82f6;
animation: toast-progress 5s linear forwards;
}
@keyframes toast-progress {
from { width: 100%; }
to { width: 0%; }
}Breathing Glow
Ambient attention indicator.
CSS:
.breathe-glow {
animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
0%, 100% {
box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}
50% {
box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}
}New Item Indicator
Highlight new content.
CSS:
.new-item {
position: relative;
}
.new-item::before {
content: 'NEW';
position: absolute;
top: -8px;
right: -8px;
padding: 2px 6px;
background: #10b981;
color: white;
font-size: 10px;
font-weight: bold;
border-radius: 4px;
animation: new-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.new-item.fade-out::before {
animation: fade-out 300ms ease-out forwards;
}
@keyframes new-bounce {
0% { transform: scale(0) rotate(-12deg); }
100% { transform: scale(1) rotate(-12deg); }
}Reduced Motion
For prefers-reduced-motion: reduce:
| Full Motion | Reduced Alternative |
| Pulsing | Static highlight color |
| Bouncing badge | Instant appearance |
| Ring pulse | Static border |
| Shimmer | Solid gray |
| Arrow bounce | Static arrow |
Implementation:
@media (prefers-reduced-motion: reduce) {
.pulse,
.badge.attention,
.ring-pulse::before,
.shimmer,
.arrow-hint,
.breathe-glow {
animation: none;
}
.ring-pulse::before {
opacity: 1;
transform: scale(1);
border-color: #3b82f6;
}
.shimmer {
background: #e0e0e0;
}
}Accessibility Considerations
- Don't auto-play indefinitely pulsing animations
- Provide dismiss for persistent attention elements
- Limit frequency of attention-grabbing effects
- Color isn't enough - combine with shape/motion
- Respect focus - don't animate focused elements excessively
Cross-References
- See
accessibility/for WCAG requirements - See
glow-shadow/for glow effects - See
looping/for continuous animations - See
particles/for celebration effects
References
references/attention-patterns.md— UX attention patterns
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.

