---
name: fluxfx
description: Use FluxFX to add WebGL2 shader and DOM animation effects to HTML, React, Next.js, or Astro projects. Use when a user asks to integrate FluxFX, select an effect, configure its options, or clean up its lifecycle. FluxFX is not an AI model or AI API.
---

# FluxFX integration skill

Use this skill when implementing or reviewing FluxFX in a web project.

## Before coding

1. Identify the framework and whether the target effect needs WebGL2.
2. Read the matching official guide and specific effect page:
   - Getting started: https://fluxfx.dev/docs/getting-started/
   - Effects: https://fluxfx.dev/docs/effects/
   - HTML/CDN: https://fluxfx.dev/docs/guides/html/
   - React/Next.js: https://fluxfx.dev/docs/guides/react-nextjs/
   - Astro: https://fluxfx.dev/docs/guides/astro/
   - API: https://fluxfx.dev/docs/api/
3. Confirm names, prop types, defaults, and current package version from the docs or installed package. Never invent options.

## Integration rules

- npm package: `@votax572002/fluxfx`.
- Core import: `@votax572002/fluxfx`; React exports: `@votax572002/fluxfx/react`.
- For HTML, initialize FluxFX and use supported `data-fx` attributes. Ensure the effect container has a non-zero size.
- For React, use the documented components or `useFX` and preserve the framework's client-side requirements.
- If using `FluxFX.apply`, retain and call the returned cleanup function when the element unmounts. Ensure declarative integrations also clean up on route or component teardown.
- Use `quality="low"` or disable effects on constrained devices when appropriate. Preserve content and controls if animation is unavailable.
- Test reduced-motion behavior and a WebGL2-unavailable fallback. Do not promise a fixed FPS or universal performance.
- Use AI-generated media only as assets passed into supported visual effects. FluxFX does not generate images or make AI model calls.

## Effect selection

WebGL2 effects: `aurora`, `liquid-metal`, `fluid`, `ink`, `aetheria`, `prism-3d`, `brush-reveal`, `spotlight`.

DOM effects: `tilt-3d`, `magnetic`, `depth-carousel`.

For agency or production work, check the repository and npm metadata for license, version, and maintenance terms before release. Validate the chosen effect on the actual target devices.
