Pixel Swap Html logo

Pixel Swap Html

Community
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.

Overview

Publishernoahneancy-byte
Repositoryfrontend-ui-motion-skills
Skill namepixel-swap-html
Stars
30
Forks
0
Bundled files
5
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by noahneancy-byte on GitHub. Read the source before you install it.

Installation

Install the Pixel Swap Html AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/noahneancy-byte/frontend-ui-motion-skills/tree/main/skills/pixel-swap-html
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pixel Swap Html in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pixel Swap Html on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pixel Swap Html is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Pixel Swap Html AI skill do?

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.

Why use Pixel Swap Html on TypingMind?

Because you install it once and use it with any model. Pixel Swap Html is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pixel Swap Html in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/noahneancy-byte/frontend-ui-motion-skills/tree/main/skills/pixel-swap-html. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Pixel Swap Html?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pixel Swap Html?

As many as you like. As long as a model supports skills, you can use Pixel Swap Html with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pixel Swap Html AI skill free?

It is published on GitHub by noahneancy-byte. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇