Skip to content
PixiKit

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
NameTypeDefaultDescription
imagestringNoneA picture to edit; the drawn landscape shows when empty.
altstring"A drawn landscape"What screen readers call the picture.
sliders[string, string, string]DEFAULT_SLIDERSThe labels of the three sliders.
looks[string, string, string]DEFAULT_LOOKSThe labels of the three looks.
cropLabelstring"Crop"The label of the crop toggle.
compareLabelstring"Compare"The label of the button that shows the untouched picture while held.
resetLabelstring"Reset"The label of the button that restores the picture.
handleLabelstring"Crop corner {n}"What screen readers call a crop corner; {n} is its number.
autoplaybooleantrueStarts when the scene scrolls into view; when off it waits for a click on replay.
loopbooleantruePlays again from the start picture after the hold.
speednumber1Playback speed multiplier.
heightnumber360The height of the scene in px.
widthnumber560The widest the scene grows, in px. It shrinks to fit a narrower parent.
replayLabelstring"Replay"What screen readers call the replay button.
classNamestringNone

Related