شعار Pixel Swap Html

Pixel Swap Html

المجتمع
noahneancy-byte
pixel-swap-html

Build or adapt a reusable pixel-grid content swap in plain HTML, CSS, and JavaScript with the bundled DOM and Web Animations module. Use when two card, hero, image, or text states should exchange through staggered pixel windows without React or a build step; do not use for image pixelation filters, glitch effects, or ordinary fades.

نظرة عامة

الناشرnoahneancy-byte
المستودعfrontend-ui-motion-skills
اسم المهارةpixel-swap-html
النجوم
30
التفريعات
0
الملفات المرفقة
5
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 5

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها noahneancy-byte على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Pixel Swap Html في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/noahneancy-byte/frontend-ui-motion-skills/tree/main/skills/pixel-swap-html
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/noahneancy-byte/frontend-ui-motion-skills.git /tmp/frontend-ui-motion-skills
mkdir -p .claude/skills
cp -r /tmp/frontend-ui-motion-skills/skills/pixel-swap-html .claude/skills/pixel-swap-html
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Pixel Swap Html في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Pixel Swap Html تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Pixel Swap Html بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Pixel Swap HTML

Create a bounded grid of animated pixel windows that reveals one complete HTML layer over another. Preserve the target page's layout and typography; the transition should clarify a state change, not obscure essential interaction.

Build the effect

  1. Copy assets/pixel-swap.js beside the target HTML, or adapt the PixelSwap class into the existing JavaScript bundle.
  2. Place exactly two direct content layers inside a host with an explicit size or aspect ratio:
html
<div id="swap-card">
  <article data-pixel-swap-layer="first">First state</article>
  <article data-pixel-swap-layer="second">Second state</article>
</div>
<script src="./pixel-swap.js"></script>
<script>
  const swap = new window.PixelSwap('#swap-card', {
    trigger: 'hover',
    pattern: 'random',
    pixelSize: 64,
    duration: 1400
  });
</script>
  1. Start from the source-matched defaults. Read references/options.md only when tuning the pattern, timing, geometry, imperative API, or data-attribute initializer.
  2. Use assets/demo.html as the behavior and integration reference, not as required page styling.

Preserve these mechanics

  • Each pixel is an overflow-hidden window onto a full clone of the incoming layer. Offset every clone by the pixel's grid position so text, images, and backgrounds remain locked to one shared origin.
  • Animate the pixel window and its content with exact inverse scale and rotation keyframes. This prevents the revealed content from shrinking, spinning, or drifting inside each pixel.
  • Keep the grid bounded. The bundled implementation caps it at 220 pixels and increases the requested pixel size when necessary.
  • Center grid overhang so edge cells remain square. For gaps or rounded pixels, expand the final window scale enough to close coverage without visible seams.
  • Freeze grid geometry and animation settings for a transition already in flight. Apply option or resize changes to the next transition.
  • Keep the outgoing complete layer visible below the pixel grid until the transition finishes, then reveal the incoming complete layer and remove all cloned pixels.

Interaction and content constraints

  • Keep the animated grid aria-hidden and inert. Only the currently shown complete layer belongs in the accessibility tree.
  • Hover mode must also respond to focus and blur. Click mode must support Enter and Space and expose button semantics when the host has no stronger existing role.
  • Honor prefers-reduced-motion by swapping layers immediately with no pixel animation.
  • Avoid cloning live video, canvas state, iframes, form controls, or other interactive widgets into hundreds of pixels. Use stable text, images, SVG, and decorative HTML; place controls outside the swapped layers when possible.
  • Retain destroy() cleanup for timers, animations, observers, attributes, and event listeners when integrating into a client-routed page.

Verify before delivery

  • Test forward and reverse transitions, including leaving hover before the forward transition completes.
  • Test every requested pattern at both wide and narrow sizes; confirm edge pixels are not clipped or rectangular.
  • Check gap plus rounded-corner combinations for seams at the end of the reveal.
  • Confirm manual mode, keyboard activation, reduced motion, resize behavior, and repeated rapid toggles.

Scope and provenance

This skill implements only the Pixel Swap interaction studied at https://reactbits.dev/animations/pixel-swap. The bundled module is an original plain-JavaScript adaptation and does not require React or code from other React Bits effects. Do not present it as the upstream React component.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Pixel Swap Html؟

Build or adapt a reusable pixel-grid content swap in plain HTML, CSS, and JavaScript with the bundled DOM and Web Animations module. Use when two card, hero, image, or text states should exchange through staggered pixel windows without React or a build step; do not use for image pixelation filters, glitch effects, or ordinary fades.

لماذا تستخدم Pixel Swap Html على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Pixel Swap Html عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Pixel Swap Html في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/noahneancy-byte/frontend-ui-motion-skills/tree/main/skills/pixel-swap-html. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Pixel Swap Html؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Pixel Swap Html؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Pixel Swap Html معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Pixel Swap Html مجانية؟

نشرها noahneancy-byte على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇