Skip to content

VidyFoo/antigravity-skill-engine / .agent/skills/4-tools/visual-designing

visual-designing

Unverified

视觉设计工具箱 - Canvas / Themes / Design System / Artifacts。The unified Visual Design Engine for Antigravity.

resources/micro-interactions.md

View on GitHub
# Micro-Interactions & Animation Patterns

Motion distinguishes a "web page" from a "web app".

## 1. The "Breathe" Effect (Subtle Idle Animation)
Use this for logos, hero images, or important cards to make them feel "alive".

```css
@keyframes breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.animate-breathe {
  animation: breathe 3s ease-in-out infinite;
}
```

## 2. Button Press (Tactile Feedback)
Buttons must feel clickable.

```javascript
// Tailwind + Framer Motion
<motion.button
  whileHover={{ scale: 1.05 }}
  whileTap={{ scale: 0.95 }}
  className="bg-accent px-6 py-2 rounded-full shadow-lg"
>
  Click Me
</motion.button>
```

## 3. Staggered List Entrance
Don't show a list of items all at once.

```javascript
// Framer Motion Variant
const container = {
  hidden: { opacity: 0 },
  show: {
    opacity: 1,
    transition: {
      staggerChildren: 0.1
    }
  }
};

const item = {
  hidden: { opacity: 0, y: 20 },
  show: { opacity: 1, y: 0 }
};
```

## 4. Skeleton Loading (Shimmer)
Never verify a "Loading..." text. Use a shimmer effect.

```javascript
// Tailwind Custom Utility
<div class="animate-pulse bg-slate-700/50 h-4 w-3/4 rounded"></div>
```
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall