Aspect ratio

An aspect ratio crop selector for React for switching a picture between landscape, square and portrait. The crop changes shape between four by three, one to one and three by four while keeping the same area each time. Morph speed and the picture's corners can be adjusted. Useful in photo editors, upload flows and social media tools.

Aspect ratio, at rest

Select · free, with full source

Aspect ratio props

NameTypeDefaultDescription
morphnumber50How quickly it changes shape. From 0 to 100.
cornernumber20The picture's radius. From 0 to 40.

Free under MIT. Licence

More blocks

More select blocks