Animation Micro Interaction Pack

作者 patricio0312rev79ea6af48569无许可证62 个星标收录于 2026年10月8日更新于 2026年10月8日仓库8个月前更新

Provides reusable interaction patterns and motion presets that make UI feel polished. Includes hover effects, transitions, entrance animations, gesture feedback, and reduced-motion support. Use when adding "animations", "transitions", "micro-interactions", or "motion design".

仅含说明Design & Creative
AI 生成的概览

提供可复用的界面动画与微交互模式、动效预设及最佳实践,让 UI 更精致。

功能
该技能提供一套界面动画与微交互模式目录,涵盖悬停效果、入场与退场动画、加载状态以及手势反馈。它包含 Tailwind CSS 动画和 Framer Motion 组件的示例配置,并给出关于时长、缓动、错峰和减少动效支持的指导。它产出参考模式与代码片段,而不是运行脚本。
适用场景
在为界面添加动画、过渡、微交互或动效设计时使用。它适合打磨界面反馈,并确保动效高性能且可访问。
运行要求
不包含脚本或运行时依赖,仅为说明文档。示例引用了 Tailwind CSS 和 Framer Motion,用户项目需自行安装。

Animation & Micro-interaction Pack

Create polished, performant animations and micro-interactions.

Animation Patterns

Hover Effects: Scale, lift (translateY), glow (box-shadow), color shifts Entrance: Fade-in, slide-in, zoom-in with stagger for lists Exit: Fade-out, slide-out, scale-out Loading: Pulse, skeleton waves, progress bars Gestures: Ripple on click, drag feedback, swipe indicators

Tailwind Animations

css
/* tailwind.config.js */animation: {  'fade-in': 'fadeIn 0.5s ease-out',  'slide-up': 'slideUp 0.3s ease-out',  'scale-in': 'scaleIn 0.2s ease-out',}

Framer Motion Examples

tsx
<motion.div  initial={{ opacity: 0, y: 20 }}  animate={{ opacity: 1, y: 0 }}  transition={{ duration: 0.3 }}/>

Best Practices

Use 200-300ms for micro-interactions, respect prefers-reduced-motion, animate transform/opacity for performance, add easing functions, stagger list items, provide hover/active states.

来源与署名

来源:patricio0312rev/skills位于frontend/animation-micro-interaction-pack提交79ea6af

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架