animation-micro-interactions
Synthesized knowledge from `anime.js` and `pattern-craft`.
- License 许可
- MIT
- 最近更新
- 2026-10-09
- Stars
- ★ 2
- Forks
- 1
01 前言 Front Matter
- name
- animation-micro-interactions
- keywords
- [ "animation-micro-interactions", "ingested" ]
- description
- Synthesized knowledge from `anime.js` and `pattern-craft`.
- mcp_compatible
- true
03 SKILL.md 正文
Animation & Micro-Interactions
Synthesized knowledge from anime.js and pattern-craft.
1. Principles of Natural Motion
Motion in UI design should never be entirely linear, as nothing in the physical world starts or stops instantaneously.
- Easing (Acceleration/Deceleration): Always employ Easing Curves. It is recommended to use
ease-outfor entering objects (start fast, end slow) andease-infor exiting objects. - Spring Physics: Utilize spring physics to create a more organic feel than traditional easing by simulating mass, friction, and tension. This is particularly effective for Popups, Modals, and Drag-and-Drop interfaces.
2. Micro-Interactions
Micro-interactions are subtle feedback mechanisms that spark user "Delight."
- Buttons: Upon hover, in addition to a color transition, incorporate a smooth, slight translation (e.g.,
translate-y-[-2px]) or a deeper shadow. Upon click (active state), the button should feel "pressed" into the surface (e.g.,scale-95). - Immediate Feedback: Any user action (touch, swipe, click) must trigger an immediate visual response (under 100ms).
3. Staggering Animations
When animating a list or grid of elements (such as Menu items or Cards), avoid revealing them simultaneously. Instead, employ Staggering.
- Stagger: Each element appears with a slight delay relative to the preceding element (e.g., 50ms). This creates a smooth "wave" or "flow" effect, effortlessly guiding the user's eye downwards.
- Anime.js Syntax Example:
anime({ targets: '.list-item', opacity: 1, translateY: 0, delay: anime.stagger(100) })
4. Performance Optimization
- The Golden Rule: Only animate two CSS properties:
transform(translate, scale, rotate) andopacity. NEVER animate properties that trigger Layout Thrashing, such aswidth,height,margin,padding,top, orleft. - Hardware Acceleration: Enable hardware acceleration by adding
will-change-transformor usingtranslate3d(0,0,0)on heavily animated elements to offload work to the GPU.
04 同仓库更多 Skills
web_crawler_katana
High-speed web crawling using Katana patterns for deep site mapping, URL discovery, and content extraction.
server_log_analyzer
Analyzes Nginx/Apache server logs to identify Googlebot crawl patterns, errors, and performance bottlenecks.
schema_markup_generator
Auto-generates JSON-LD structured data for any page type (Article, Product, FAQ, LocalBusiness, etc.).
internal_linking_optimizer
Analyzes and optimizes the internal link graph of a website for SEO authority distribution.
google_trends_analyzer
Detects trending topics and seasonal patterns using Google Trends data for content planning and keyword strategy.
brand_context_analyzer
Tracks brand mentions, sentiment, and online reputation across web sources.