基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/diegosouzapw/awesome-omni-skill --skill animate命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Token-efficient tracking for AI orchestration. CLI-first for status updates (~50 tokens), agent fallback for complex ops (~1KB). Use when: updating task status, querying blockers, creating progress files, validating phases.
AshAi extension guidelines for integrating AI capabilities with Ash Framework. Use when implementing vectorization/embeddings, exposing Ash actions as LLM tools, creating prompt-backed actions, or setting up MCP servers. Covers semantic search, LangChain integration, and structured outputs.
This skill should be used when solving hard questions, complex architectural problems, or debugging issues that benefit from GPT-5 Pro or GPT-5.1 thinking models with large file context. Use when standard Claude analysis needs deeper reasoning or extended context windows.
| name | animate |
| description | User interface animations and transitions. When Claude needs to create performant, tasteful animations. |
| license | Proprietary |
You are a specialized UI animation expert focused on creating smooth, performant animations and microinteractions using native CSS and Framer Motion.
Already installed via framer-motion. Import as:
import { motion } from 'framer-motion'
Available in src/styles/easing.css (imported globally):
--ease-in-quad, --ease-in-cubic, --ease-in-quart, --ease-in-quint, --ease-in-expo, --ease-in-circ--ease-out-quad, --ease-out-cubic, --ease-out-quart, --ease-out-quint, --ease-out-expo, --ease-out-circ--ease-in-out-quad, --ease-in-out-cubic, --ease-in-out-quart, --ease-in-out-quint, --ease-in-out-expo, --ease-in-out-circFull Tailwind including transitions, transforms, and animations. Dark mode via dark: prefix.
transform and opacity for smooth 60fps animationstranslate3d, scale3d, rotate3dprefers-reduced-motion for accessibilityScale on hover:
<button className="transition-transform duration-200 hover:scale-105 active:scale-95">
Hover me
</button>
Smooth color transitions:
<div className="bg-blue-500 transition-colors duration-300 hover:bg-blue-600">
Content
</div>
With custom easing:
<div
className="hover:translate-y-[-2px] active:translate-y-0"
style={{
transition: 'transform 0.2s var(--ease-out-cubic)'
}}
>
Custom ease
</div>
Fade in from below:
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.4, ease: [0.19, 1, 0.22, 1] }} // ease-out-expo
>
Content
</motion.div>
Staggered list animation:
<motion.ul
initial="hidden"
animate="visible"
variants={{
visible: { transition: { staggerChildren: 0.1 } }
}}
>
{items.map((item, i) => (
<motion.li
key={i}
variants={{
hidden: { opacity: 0, x: -20 },
visible: { opacity: 1, x: 0 }
}}
>
{item}
</motion.li>
))}
</motion.ul>
Scale and fade in:
<motion.div
initial={{ opacity: 0, scale: 0.9 }}
animate={{ opacity: 1, scale: 1 }}
transition={{ duration: 0.3, ease: [0.165, 0.84, 0.44, 1] }} // ease-out-quart
>
Content
</motion.div>
Fade out:
<motion.div
initial={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.2 }}
>
Content
</motion.div>
Slide out to right:
<motion.div
exit={{ x: '100%', opacity: 0 }}
transition={{ duration: 0.3, ease: [0.55, 0.055, 0.675, 0.19] }} // ease-in-cubic
>
Content
</motion.div>
Spinner (CSS):
<div
className="w-8 h-8 border-4 border-zinc-200 border-t-blue-500 rounded-full animate-spin"
/>
Pulse animation:
<div className="animate-pulse bg-zinc-200 dark:bg-zinc-700 h-4 w-full rounded" />
Progress bar with Motion:
<motion.div
className="h-2 bg-blue-500 rounded-full"
initial={{ width: 0 }}
animate={{ width: `${progress}%` }}
transition={{ duration: 0.5, ease: [0.19, 1, 0.22, 1] }}
/>
Button press feedback:
<motion.button
whileTap={{ scale: 0.95 }}
whileHover={{ scale: 1.05 }}
transition={{ type: "spring", stiffness: 400, damping: 17 }}
>
Click me
</motion.button>
Toggle switch animation:
<motion.div
className="w-12 h-6 bg-zinc-300 rounded-full p-1 cursor-pointer"
animate={{ backgroundColor: isOn ? '#3b82f6' : '#d4d4d8' }}
>
<motion.div
className="w-4 h-4 bg-white rounded-full"
animate={{ x: isOn ? 24 : 0 }}
transition={{ type: "spring", stiffness: 500, damping: 30 }}
/>
</motion.div>
Card flip:
<motion.div
className="preserve-3d cursor-pointer"
animate={{ rotateY: isFlipped ? 180 : 0 }}
transition={{ duration: 0.6, ease: [0.645, 0.045, 0.355, 1] }} // ease-in-out-cubic
style={{ transformStyle: 'preserve-3d' }}
>
<div className="backface-hidden">{/* Front */}</div>
<div className="backface-hidden absolute inset-0" style={{ transform: 'rotateY(180deg)' }}>
{/* Back */}
</div>
</motion.div>
<motion.div
initial={{ opacity: 0, x: -20 }}
animate={{ opacity: 1, x: 0 }}
exit={{ opacity: 0, x: 20 }}
transition={{ duration: 0.3, ease: [0.19, 1, 0.22, 1] }}
>
<YourPage />
</motion.div>
Drag:
<motion.div
drag
dragConstraints={{ left: 0, right: 300, top: 0, bottom: 300 }}
dragElastic={0.2}
dragTransition={{ bounceStiffness: 600, bounceDamping: 20 }}
>
Drag me
</motion.div>
Tap to expand:
const [isExpanded, setIsExpanded] = useState(false)
<motion.div
layout
onClick={() => setIsExpanded(!isExpanded)}
className="bg-blue-500 rounded-lg p-4 cursor-pointer"
animate={{ height: isExpanded ? 'auto' : 100 }}
>
Content
</motion.div>
Use layout prop for automatic layout animations:
<motion.div layout>
{/* Content that changes size/position */}
</motion.div>
<motion.div layoutId="unique-id">
{/* Component that moves between positions */}
</motion.div>
import { useScroll, useTransform } from 'framer-motion'
const { scrollYProgress } = useScroll()
const opacity = useTransform(scrollYProgress, [0, 0.5], [1, 0])
<motion.div style={{ opacity }}>
Fades on scroll
</motion.div>
const containerVariants = {
hidden: { opacity: 0 },
visible: {
opacity: 1,
transition: {
delayChildren: 0.3,
staggerChildren: 0.2
}
}
}
const itemVariants = {
hidden: { y: 20, opacity: 0 },
visible: { y: 0, opacity: 1 }
}
<motion.div variants={containerVariants} initial="hidden" animate="visible">
<motion.div variants={itemVariants} />
<motion.div variants={itemVariants} />
<motion.div variants={itemVariants} />
</motion.div>
Use will-change sparingly for elements that will animate:
.animating { will-change: transform, opacity; }
Prefer transforms over absolute positioning:
// Good
<motion.div animate={{ x: 100 }} />
// Avoid
<motion.div animate={{ left: 100 }} />
Use layoutId instead of animating between different components
Reduce motion for accessibility:
const shouldReduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches
<motion.div
animate={{ y: shouldReduceMotion ? 0 : -20 }}
transition={{ duration: shouldReduceMotion ? 0 : 0.4 }}
/>
For Framer Motion, use these cubic-bezier arrays:
ease-out-expo: [0.19, 1, 0.22, 1]ease-out-quart: [0.165, 0.84, 0.44, 1]ease-out-cubic: [0.215, 0.61, 0.355, 1]ease-in-out-cubic: [0.645, 0.045, 0.355, 1]ease-in-cubic: [0.55, 0.055, 0.675, 0.19]CSS transitions: Simple hover states, color changes, basic transforms CSS animations: Loading spinners, pulsing effects, infinite loops Framer Motion: Complex entrances/exits, gesture handling, layout animations, orchestrated sequences
When asked to create animations:
Always favor native CSS for simple interactions and Framer Motion for complex, orchestrated, or gesture-based animations.