ChromaticAberration
Soft channel-offset wrapper for chromatic distortion on surfaces and media
Visual effect demo
Accessibility
- Treat the effect as decorative and keep underlying content understandable without color, blur, or motion alone.
- Respect reduced-motion and contrast requirements when animation or filtering is enabled.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
svelte
<script lang="ts">
import '@dryui/ui/themes/default.css';
import '@dryui/ui/themes/dark.css';
import { ChromaticAberration } from '@dryui/ui';
</script>
<ChromaticAberration>Content</ChromaticAberration> Import options
Root package
ts
import { ChromaticAberration } from '@dryui/ui' Per-component subpath
ts
import { ChromaticAberration } from '@dryui/ui/chromatic-aberration' API
Props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Description | Default | Required | Bindable |
|---|---|---|---|---|---|
| offset | number | — | 3 | — | — |
| angle | number | — | 0 | — | — |
| children | Snippet | Content rendered inside the component. | — | ✓ | — |