Photo Edit
A picture being edited: a pointer lifts the light, picks a look with a diagonal wipe, crops a corner and sweeps a before and after divider across. Visitors can drag the sliders, pick a look, crop with the corners, hold Compare and reset.
pixikit.com/docs/blocks/illustrations/photo-edit
Customize
Autoplay
Loop
Speed1.0x
Height360px
Width560px
Props
15| Name | Type | Default | Description |
|---|---|---|---|
image | string | None | A picture to edit; the drawn landscape shows when empty. |
alt | string | "A drawn landscape" | What screen readers call the picture. |
sliders | [string, string, string] | DEFAULT_SLIDERS | The labels of the three sliders. |
looks | [string, string, string] | DEFAULT_LOOKS | The labels of the three looks. |
cropLabel | string | "Crop" | The label of the crop toggle. |
compareLabel | string | "Compare" | The label of the button that shows the untouched picture while held. |
resetLabel | string | "Reset" | The label of the button that restores the picture. |
handleLabel | string | "Crop corner {n}" | What screen readers call a crop corner; {n} is its number. |
autoplay | boolean | true | Starts when the scene scrolls into view; when off it waits for a click on replay. |
loop | boolean | true | Plays again from the start picture after the hold. |
speed | number | 1 | Playback speed multiplier. |
height | number | 360 | The height of the scene in px. |
width | number | 560 | The widest the scene grows, in px. It shrinks to fit a narrower parent. |
replayLabel | string | "Replay" | What screen readers call the replay button. |
className | string | None |