Logo vun Ripple Distortion Html

Ripple Distortion Html

Communautéit
noahneancy-byte
ripple-distortion-html

Build or adapt a reusable image ripple-distortion interaction in plain HTML, CSS, and JavaScript with the bundled zero-dependency WebGL module. Use when a page needs cursor- or click-driven refractive ripples without React or a build step; do not use for ordinary CSS button ripples, canvas water simulations, or unrelated distortion effects.

Iwwersiicht

Editeurnoahneancy-byte
Repositoryfrontend-ui-motion-skills
Skill-Nummripple-distortion-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 Ripple Distortion 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/ripple-distortion-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/ripple-distortion-html .claude/skills/ripple-distortion-html
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Ripple Distortion 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 Ripple Distortion 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 Ripple Distortion 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.

Ripple Distortion HTML

Create a responsive image surface whose pixels refract along fading concentric ripples. Preserve the target page's layout and visual language; the effect is an enhancement, not a replacement for its content.

Build the effect

  1. Copy assets/ripple-distortion.js beside the target HTML, or adapt the RippleDistortion class into the existing JavaScript bundle.
  2. Give the host element an explicit, non-zero size and instantiate the browser-global class:
html
<div id="ripple-hero" aria-label="Abstract landscape"></div>
<script src="./ripple-distortion.js"></script>
<script>
  const ripple = new window.RippleDistortion('#ripple-hero', {
    src: './hero.jpg',
    trigger: 'hover',
    strength: 0.2,
    rings: 4
  });
</script>
  1. Start from the source-matched defaults. Change only parameters that serve the requested art direction. Read references/options.md for parameter behavior, safe ranges, presets, and the public API.
  2. Preserve the module's image fallback, resize handling, offscreen pause, reduced-motion behavior, and destroy() cleanup when integrating it into another codebase.

Non-negotiable implementation details

  • Use a two-pass displacement pipeline: accumulate ripple masks in an offscreen texture, then use that texture to offset image sampling in the final pass. CSS filters alone do not reproduce the refractive look.
  • Keep pointer coordinates local to the host element and convert the vertical axis for WebGL. The effect must still align after scrolling or resizing.
  • Render the image with cover semantics. Do not stretch it to the container's aspect ratio.
  • Keep a visible <img> fallback until WebGL has uploaded the source texture. Remote images need permissive CORS headers; if they do not have them, recommend a same-origin image rather than hiding the failure.
  • Keep the canvas decorative (aria-hidden="true") and put the image description on the host with aria-label.
  • Honor prefers-reduced-motion: show the static image and suppress new ripples.
  • For multiple instances or client-side page changes, retain each returned instance and call destroy() before removing its host.

Verify before delivery

  • Test hover and click triggers at the container's corners as well as its center.
  • Resize the host and confirm that the image remains cover-cropped and the ripple stays under the pointer.
  • Confirm the static fallback appears when WebGL is unavailable or image texture upload fails.
  • Check that reduced-motion mode produces no new distortion.
  • Use assets/demo.html as the visual reference and integration example, not as mandatory page styling.

Scope and provenance

This skill implements only the Ripple Distortion interaction studied at https://reactbits.dev/animations/ripple-distortion. The bundled module is an original plain-WebGL adaptation; it does not require React, OGL, 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 Ripple Distortion Html?

Build or adapt a reusable image ripple-distortion interaction in plain HTML, CSS, and JavaScript with the bundled zero-dependency WebGL module. Use when a page needs cursor- or click-driven refractive ripples without React or a build step; do not use for ordinary CSS button ripples, canvas water simulations, or unrelated distortion effects.

Firwat Ripple Distortion Html op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Ripple Distortion 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 Ripple Distortion 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/ripple-distortion-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 Ripple Distortion 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 Ripple Distortion Html benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Ripple Distortion 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 Ripple Distortion 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 👇