agentleFS
1stANUNNAKI1stANUNNAKI/majlis/skills/explode-animation-skill/SKILL.md

explode-animation-skill

Skill2 starsChanged 3 months agoMITView on GitHub

Create product explosion/fragment animations: layered disassembly sequences, timing curves, and Remotion/CSS implementations.

The file

Files
SKILL.md

مهارة تفكيك وانفجار المنتج (Product Explosion Animation Skill)

هذه المهارة مخصصة لإنشاء تأثيرات بصرية مذهلة حيث يتفكك المنتج إلى أجزاء عند التمرير (Scroll) ويعاد تجميعه.


🛠️ القدرات التقنية:

  • Shatter Effect: تقسيم صورة المنتج إلى قطع (Tiles) أو أجزاء SVG.
  • Scroll-Bound Motion: ربط حركة كل قطعة بموضع التمرير باستخدام GSAP ScrollTrigger.
  • 3D Displacement: تحريك القطع في فضاء ثلاثي الأبعاد (X, Y, Z) لتعزيز واقعية الانفجار.
  • Reassembly: إعادة تجميع المنتج بدقة 100% عند وصول المستخدم لنقطة معينة في الصفحة.

💻 الاستدعاء البرمجي الأساسي:

// تقسيم المنتج إلى أجزاء
const parts = document.querySelectorAll('.product-part');

gsap.to(parts, {
  scrollTrigger: {
    trigger: ".section-explode",
    start: "top top",
    end: "+=1500",
    scrub: 1,
    pin: true
  },
  x: () => gsap.utils.random(-500, 500),
  y: () => gsap.utils.random(-500, 500),
  rotation: () => gsap.utils.random(-360, 360),
  opacity: 0.3,
  stagger: 0.01
});

📈 معايير الأداء:

  1. استخدم SVG Paths إذا كان المنتج عبارة عن رسم توضيحي.
  2. استخدم Canvas API إذا كان عدد القطع كبيراً جداً (أكثر من 100 قطعة) للحفاظ على سرعة 60fps.
  3. تأكد من تفعيل will-change: transform لتقليل استهلاك المعالج.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.