animejs-animation
Skill này làm gì
Công cụ này tạo hiệu ứng chuyển động phức tạp và mượt mà cho website bằng code JavaScript. Nó cho phép các yếu tố trực quan di chuyển, thay đổi kích thước hoặc xuất hiện theo cách tinh xảo.
Khi nào nên dùng
- ✓Khi tạo hiệu ứng nhiều giai đoạn cho trang đích (landing page).
- ✓Khi làm các phần tử xuất hiện theo thứ tự (hiệu ứng stagger).
- ✓Khi tạo chuyển động cho đồ họa vector (SVG) để tạo hình dạng hoặc đường nét động.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/animejs-animation/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
📦 Skill này nằm trong các gói sau
Ví dụ cách nhờ AI
“Tạo hiệu ứng cho tiêu đề và hình ảnh chính của trang: tiêu đề xuất hiện trước với chuyển động nhẹ, sau đó hình ảnh hiện ra.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Bạn chỉ định các phần tử trên trang cần tạo hiệu ứng và cách chúng di chuyển (ví dụ từ dưới lên, thu nhỏ). Công cụ kết hợp các chỉ dẫn này để tạo chuỗi hiệu ứng mượt mà và có kiểm soát.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Anime.js Animation Skill
Anime.js is a lightweight but extremely powerful JavaScript animation engine. It excels at complex timelines, staggering, and precise control over DOM, CSS, and SVGs.
Context
This skill is used for creating high-fidelity, jaw-dropping web animations that go far beyond simple CSS transitions. It's the tool of choice for awards-caliber interactive sites.
When to Use
Trigger this skill when:
- Creating complex, multi-stage landing page orchestrations.
- Implementing staggered animations for revealing grids, text, or data visualizations.
- Animating SVG paths (morphing shapes, drawing dynamic lines).
- Building highly interactive, kinetic UI elements that respond fluidly to user input.
Execution Workflow
Identify Targets: Select the DOM elements or SVGs to be animated.
Define Properties & Easing: Specify values to animate. Crucially, utilize advanced easing functions (e.g., custom
cubicBezier,spring, orelastic) instead of basiclinearorease-in-outto make the motion feel expensive and natural.Orchestrate Timelines: Inspect the installed major version first. This example targets Anime.js v3; use
anime.timeline()to sequence complex choreography. Master the use of timeline offsets (relative'-=200'vs absolute) to create seamless overlapping motion.Implement: For a bundler with Anime.js v3 installed,
import anime from "animejs";supplies theanimebinding. The selectors must exist in the rendered DOM.const tl = anime.timeline({ easing: "spring(1, 80, 10, 0)", duration: 1000, }); tl.add({ targets: ".hero-text", translateY: [50, 0], opacity: [0, 1], delay: anime.stagger(100), }).add( { targets: ".hero-image", scale: [0.9, 1], opacity: [0, 1] }, "-=800", );
Motion and Compatibility
- Scope: Use motion when it serves the product brief and user task. Respect the existing design system; simple transitions and static states are valid choices.
- Staggering: Leverage
anime.stagger()extensively to add organic rhythm to multiple elements. - Performance: Monitor main thread usage; use
will-change: transform, opacitywhere appropriate for GPU acceleration.
Example
User request:
Create complex, multi-stage landing page orchestrations.
Limitations
- The code above uses the v3 API. Anime.js v4 uses imported
createTimeline()and a different target/parameter signature; do not mix major-version examples. Consult official timeline documentation for the installed version. - Respect
prefers-reduced-motion: provide a static final state, avoid scroll hijacking, and keep focus/keyboard interactions immediately usable. Dispose animations when their component unmounts. will-changeis a temporary optimization hint, not a guarantee of GPU acceleration; measure real frames and avoid leaving it on every element.- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Câu hỏi thường gặp
“Stagger” là gì?
Đó là hiệu ứng làm nhiều phần tử xuất hiện hoặc di chuyển lần lượt, mỗi phần tử cách nhau một khoảng trễ nhỏ, tạo nhịp điệu thị giác.
“Easing functions” là gì?
Đây là các hàm kiểm soát tốc độ của hiệu ứng theo thời gian, làm chuyển động tự nhiên hơn và bớt máy móc, giống chuyển động trong thực tế.
Tôi có thể dùng công cụ này trên mọi website không?
Có, nhưng nó phù hợp nhất với các hiệu ứng công phu thật sự làm tăng giá trị thiết kế và trải nghiệm người dùng, không phải hiệu ứng đơn giản.
Chi tiết
Mô tả gốc của tác giả
Advanced JavaScript animation library skill for creating complex, high-performance web animations.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #3750
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.