Skip to content

Transitions

Transitions allow you to animate setting the result of an image request on a Target.

Both ImageLoader and Request builders accept a Transition. Transitions allow you to intercept setting the Drawable on the Target. This allows you to animate the target's view or wrap the input drawable.

By default, Coil comes packaged with 1 transition: crossfade. Take a look at the CrossfadeTransition source code for an example of how to write a custom Transition.

See the API doc for more information.