API

API Interface — real-time API example

Jcrop 9.0.3 API interface panel
Default

Default Behaviour

This example demonstrates the default behavior of Jcrop.
Since no event handlers have been attached it only performs the cropping behavior.
Basic

Basic Handler — basic form integration

An example with a basic event handler. Here we've tied several form values together with a simple event handler invocation. The result is that the form values are updated in real-time as the selection is changed using Jcrop's onChange handler.
Aspect Ratio

Aspect Ratio w/ Preview Pane — nice visual example

An example implementing a preview pane. Obviously the most visual demo, the preview pane is accomplished entirely outside of Jcrop with a simple jQuery-flavored callback. This type of interface could be useful for creating a thumbnail or avatar. The onChange event handler is used to update the view in the preview pane.
Animations

Animation/Transitions — animation/fading demo

Experimental shader active. Jcrop now includes a shading mode that facilitates building better transparent Jcrop instances. The experimental shader is less robust than Jcrop's default shading method and should only be used if you require this functionality.
Styling

Styling Example — style Jcrop dynamically