agentleFS
1stANUNNAKI1stANUNNAKI/majlis/skills/advanced-image-slicing-skill/SKILL.md

advanced-image-slicing-skill

Skill2 starsChanged 3 months agoMITView on GitHub

Slice large images into responsive tiles/sprites and animate pan/zoom transitions for web layouts.

The file

Files
SKILL.md

مهارة تقطيع وتحريك الصور المتقدمة (Advanced Image Slicing Skill)

مهارة برمجية تتيح تفكيك صورة واحدة إلى أجزاء متعددة وتحريكها بشكل مستقل لخلق تأثيرات "انفجار" واقعية.


🛠️ التقنيات:

  • Background Mapping: استخدام نفس الصورة كخلفية لعدة عناصر (divs) مع تغيير background-position.
  • Clip-Path Slicing: استخدام مسارات CSS لقص الصورة بأشكال هندسية معقدة.
  • Coordinate Sync: مزامنة إحداثيات كل قطعة لتظهر كصورة واحدة عند تجميعها.

💻 مثال برمجى (CSS/JS):

// تكرار الصورة في 4 قطع
const parts = document.querySelectorAll('.part');
parts.forEach((part, i) => {
    part.style.backgroundImage = `url('product.png')`;
    part.style.backgroundPosition = `${(i % 2) * 100}% ${(Math.floor(i / 2)) * 100}%`;
});

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

  • استخدام صورة عالية الدقة (High Res) لضمان عدم ضياع التفاصيل عند التقريب.
  • استخدام background-size: 200% أو أكثر حسب عدد القطع.

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.