Logo vun Pixel Swap Html

Pixel Swap Html

Communautéit
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.

Iwwersiicht

Editeurnoahneancy-byte
Repositoryfrontend-ui-motion-skills
Skill-Nummpixel-swap-html
Stären
30
Forks
0
Matgeliwwert Fichieren
5
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 5 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum noahneancy-byte op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Pixel Swap Html an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/noahneancy-byte/frontend-ui-motion-skills/tree/main/skills/pixel-swap-html
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Pixel Swap Html an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Pixel Swap Html automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Pixel Swap Html net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Pixel Swap Html op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Pixel Swap Html besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Pixel Swap Html an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/noahneancy-byte/frontend-ui-motion-skills/tree/main/skills/pixel-swap-html an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Pixel Swap Html benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Pixel Swap Html benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Pixel Swap Html domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Pixel Swap Html gratis?

De Skill gëtt vum noahneancy-byte op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇