Install
$ agentstack add skill-tommylower-cortex-css-interaction-tips ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
CSS Interaction Tips
Quick-reference for common CSS interaction and animation scenarios. Use when working on hover effects, transitions, button states, tooltips, popovers, tap targets, or any UI interaction polish.
Practical Tips
| Scenario | Solution | |---|---| | Make buttons feel responsive | Add transform: scale(0.97) on :active | | Element appears from nowhere | Start from scale(0.95), not scale(0) | | Shaky/jittery animations | Add will-change: transform | | Hover causes flicker | Animate child element, not parent | | Popover scales from wrong point | Set transform-origin to trigger location | | Sequential tooltips feel slow | Skip delay/animation after first tooltip | | Small buttons hard to tap | Use 44px minimum hit area (pseudo-element) | | Something still feels off | Add subtle blur (under 20px) to mask it | | Hover triggers on mobile | Use @media (hover: hover) and (pointer: fine) |
Code Snippets
Responsive button press
button:active {
transform: scale(0.97);
transition: transform 0.1s ease;
}
Smooth element entrance (not jarring)
.element {
transform: scale(0.95);
opacity: 0;
transition: transform 0.2s ease, opacity 0.2s ease;
}
.element.visible {
transform: scale(1);
opacity: 1;
}
Fix jittery animation
.animated {
will-change: transform;
}
Large tap target via pseudo-element
button {
position: relative;
}
button::after {
content: '';
position: absolute;
inset: -10px; /* expands hit area by 10px on all sides */
}
Hover-only on desktop
@media (hover: hover) and (pointer: fine) {
.element:hover {
/* hover styles here */
}
}
Popover from correct origin
.popover {
transform-origin: top left; /* match to trigger position */
transform: scale(0.95);
transition: transform 0.15s ease;
}
.popover.open {
transform: scale(1);
}
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: tommylower
- Source: tommylower/cortex
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.