Pixel UI/Image effects/Image morph

Image morph

One picture melts into another through a glowing edge.

<piix-image-fx>WebGL
Effect
Glow

Give it two images. Hover and the first dissolves into the second along a flowing, glowing edge. With auto it morphs back and forth on its own.

Installation

<!-- once, anywhere on the page: every component -->
<script src="https://cdn.jsdelivr.net/npm/piixpal@0.6/piixpal.min.js"></script>

Usage

<piix-image-fx src="../site/pixelui-30-poster.jpg" src2="../site/pixelui-launch-poster.jpg" effect="morph" alt="A lake at sunset becoming a launch poster" height="440px"></piix-image-fx>

Examples

On its own

auto morphs back and forth without a pointer.

API reference

AttributeWhat it doesDefault
srcthe image (on your site, or served with CORS)–
src2the second image, for morph–
altwhat it shows–
effectdots alive liquid rgb morph ripple streak zoom frosted codeliquid
automorph on its own instead of on hover–
palettethe glow colourssunset
heightany CSS lengththe image's own shape

Accessibility